3
0

Add option to disable on record save notifications per record page

This commit is contained in:
Jože Fortun
2024-02-23 16:42:20 +01:00
parent 4638f1d003
commit 32edb8ef2f
6 changed files with 32 additions and 4 deletions

View File

@@ -192,7 +192,9 @@ export default {
}
}
this.toastSuccess(this.$t(`notification:record.${isNew ? 'create' : 'update'}Success`))
if (this.page.meta.notifications.enabled) {
this.toastSuccess(this.$t(`notification:record.${isNew ? 'create' : 'update'}Success`))
}
})
.catch(e => {
// Since processing is set to false by the view record component, we need to set it to false here if we error out

View File

@@ -225,6 +225,14 @@
>
{{ $t('showSubPages') }}
</b-form-checkbox>
<b-form-checkbox
v-if="isRecordPage"
v-model="page.meta.notifications.enabled"
data-test-id="checkbox-page-notifications-enabled"
>
{{ $t('edit.notifications.enabled') }}
</b-form-checkbox>
</b-form-group>
</b-col>