mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 12:41:10 -04:00
bug: notification issues solved
This commit is contained in:
@ -385,13 +385,13 @@ export default {
|
||||
if (result.value) {
|
||||
let request = await this.deletePayment({ ids: [id] })
|
||||
if (request.data.success) {
|
||||
this.showToaster({
|
||||
this.showNotification({
|
||||
type: 'success',
|
||||
message: this.$tc('payments.deleted_message', 1),
|
||||
})
|
||||
this.$router.push('/admin/payments')
|
||||
} else if (request.data.error) {
|
||||
this.showToaster({
|
||||
this.showNotification({
|
||||
type: 'error',
|
||||
message: request.data.message,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user