Add option to disable on record save notifications per record page
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user