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

@ -426,7 +426,7 @@ export default {
this.isMarkingAsSent = false
if (response.data) {
this.invoice.status = 'SENT'
this.showToaster({
this.showNotification({
type: 'success',
message: this.$tc('invoices.marked_as_sent_message'),
})
@ -465,13 +465,13 @@ export default {
if (result.value) {
let request = await this.deleteInvoice({ ids: [id] })
if (request.data.success) {
this.showToaster({
this.showNotification({
type: 'success',
message: this.$tc('invoices.deleted_message', 1),
})
this.$router.push('/admin/invoices')
} else if (request.data.error) {
this.showToaster({
this.showNotification({
type: 'error',
message: request.data.message,
})