added err msg to all standard toasts

This commit is contained in:
vabene1111
2022-04-23 01:41:08 +02:00
parent e4223787be
commit 30d5587fbe
14 changed files with 66 additions and 93 deletions

View File

@@ -116,8 +116,8 @@ export default {
.then((result) => {
StandardToasts.makeStandardToast(this,StandardToasts.SUCCESS_UPDATE)
})
.catch((error) => {
StandardToasts.makeStandardToast(this,StandardToasts.FAIL_UPDATE)
.catch((err) => {
StandardToasts.makeStandardToast(this,StandardToasts.FAIL_UPDATE, err)
})
},
refreshData: function () {
@@ -137,8 +137,8 @@ export default {
this.$emit("refresh")
StandardToasts.makeStandardToast(this,StandardToasts.SUCCESS_DELETE)
})
.catch((error) => {
StandardToasts.makeStandardToast(this,StandardToasts.FAIL_DELETE)
.catch((err) => {
StandardToasts.makeStandardToast(this,StandardToasts.FAIL_DELETE, err)
})
}
},