opnform/client/mixins/forms/saveUpdateAlert.js

12 lines
330 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) {
useAlert().warning(responseData.message)
2023-12-09 14:47:03 +00:00
} else {
useAlert().success(responseData.message)
2023-12-09 14:47:03 +00:00
}
}
}
}