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

@ -184,11 +184,11 @@ export default {
})
.catch((err) => {
if (del_shopping) {
StandardToasts.makeStandardToast(this,StandardToasts.FAIL_DELETE)
StandardToasts.makeStandardToast(this,StandardToasts.FAIL_DELETE, err)
} else if (this.selected_shoppingrecipe) {
StandardToasts.makeStandardToast(this,StandardToasts.FAIL_UPDATE)
StandardToasts.makeStandardToast(this,StandardToasts.FAIL_UPDATE, err)
} else {
StandardToasts.makeStandardToast(this,StandardToasts.FAIL_CREATE)
StandardToasts.makeStandardToast(this,StandardToasts.FAIL_CREATE, err)
}
this.$emit("shopping-failed")
})