opnform/client/mixins/forms/saveUpdateAlert.js

12 lines
328 B
JavaScript
Raw Normal View History

2023-12-09 14:47:03 +00:00
export default {
methods: {
displayFormModificationAlert (responseData) {
if (responseData.form && responseData.form.cleanings && Object.keys(responseData.form.cleanings).length > 0) {
this.alertWarning(responseData.message)
} else {
this.alertSuccess(responseData.message)
}
}
}
}