mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-04 05:39:00 -05:00
updated generic modal form to always show errors
This commit is contained in:
@@ -222,7 +222,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
StandardToasts.makeStandardToast(this,StandardToasts.FAIL_CREATE)
|
StandardToasts.makeStandardToast(this,StandardToasts.FAIL_CREATE, err, true)
|
||||||
this.$emit("finish-action", "cancel")
|
this.$emit("finish-action", "cancel")
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@@ -232,7 +232,7 @@ export default {
|
|||||||
StandardToasts.makeStandardToast(this,StandardToasts.SUCCESS_UPDATE)
|
StandardToasts.makeStandardToast(this,StandardToasts.SUCCESS_UPDATE)
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
StandardToasts.makeStandardToast(this,StandardToasts.FAIL_UPDATE, err)
|
StandardToasts.makeStandardToast(this,StandardToasts.FAIL_UPDATE, err, true)
|
||||||
this.$emit("finish-action", "cancel")
|
this.$emit("finish-action", "cancel")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user