8622-testToMaster #1411

Merged
alexm merged 746 commits from 8622-testToMaster into master 2025-02-18 07:54:25 +00:00
1 changed files with 13 additions and 5 deletions
Showing only changes of commit 65c2b24b78 - Show all commits

View File

@ -151,14 +151,22 @@ function filter(value, update, filterOptions) {
}
async function onSubmit() {
if (!hasChanges.value) {
return quasar.notify({
try {
if (!hasChanges.value) {
return quasar.notify({
type: 'negative',
message: t('globals.noChanges'),
});
}
isLoading.value = true;
await saveChanges($props.saveFn ? formData.value : null);
} catch (e) {
const errMessage = e?.response?.data?.error?.message;
quasar.notify({
type: 'negative',
message: t('globals.noChanges'),
message: t(`${errMessage}`),
});
}
isLoading.value = true;
await saveChanges($props.saveFn ? formData.value : null);
}
async function onSubmitAndGo() {