Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Nov 10, 2024
1 parent 580d5c3 commit 9406866
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/components/Pages/Admin/Group/GroupDeleteModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,24 @@ const emits = defineEmits(['deleted'])
// Methods
const deleteConfirmed = () => {
deleteGroup(props.group.slug).then((response) => {
emits('deleted')
UIkit.notification({
message: response.message,
status: 'success',
pos: 'top-right',
timeout: 4000
deleteGroup(props.group.slug)
.then((response) => {
emits('deleted')
UIkit.notification({
message: response.message,
status: 'success',
pos: 'top-right',
timeout: 4000
})
})
}).catch((error) => {
UIkit.notification({
message: error.description,
status: 'danger',
pos: 'top-right',
timeout: 4000
.catch((error) => {
UIkit.notification({
message: error.description,
status: 'danger',
pos: 'top-right',
timeout: 4000
})
})
})
}
</script>

Expand Down

0 comments on commit 9406866

Please sign in to comment.