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

@ -422,7 +422,7 @@ export default {
this.isMarkAsSent = false
if (response.data) {
this.estimate.status = 'SENT'
this.showToaster({
this.showNotification({
type: 'success',
message: this.$tc('estimates.mark_as_sent_successfully'),
})
@ -461,13 +461,13 @@ export default {
if (result.value) {
let request = await this.deleteEstimate({ ids: [id] })
if (request.data.success) {
this.showToaster({
this.showNotification({
type: 'success',
message: this.$tc('estimates.deleted_message', 1),
})
this.$router.push('/admin/estimates')
} else if (request.data.error) {
this.showToaster({
this.showNotification({
type: 'error',
message: request.data.message,
})