opnform/resources/js/mixins/forms/saveUpdateAlert.js

12 lines
328 B
JavaScript
Raw Normal View History

2022-09-20 19:59:52 +00:00
export default {
methods: {
displayFormModificationAlert (responseData) {
if (responseData.form && responseData.form.cleanings && Object.keys(responseData.form.cleanings).length > 0) {
this.alertWarning(responseData.message)
2022-09-20 19:59:52 +00:00
} else {
this.alertSuccess(responseData.message)
}
}
}
}