bug: notification issues solved

This commit is contained in:
Aman-RM
2021-04-12 16:02:44 +05:30
parent 55d838371a
commit 1ffb1b2eec
4 changed files with 24 additions and 24 deletions

View File

@ -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,
})