diff --git a/client/web/compose/src/mixins/record.js b/client/web/compose/src/mixins/record.js index 2226433ea3..969d93a782 100644 --- a/client/web/compose/src/mixins/record.js +++ b/client/web/compose/src/mixins/record.js @@ -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 diff --git a/client/web/compose/src/views/Admin/Pages/Edit.vue b/client/web/compose/src/views/Admin/Pages/Edit.vue index a0c11ecb6e..1e372e4e67 100644 --- a/client/web/compose/src/views/Admin/Pages/Edit.vue +++ b/client/web/compose/src/views/Admin/Pages/Edit.vue @@ -225,6 +225,14 @@ > {{ $t('showSubPages') }} + + + {{ $t('edit.notifications.enabled') }} + diff --git a/lib/js/src/compose/types/page.ts b/lib/js/src/compose/types/page.ts index 1106cbeea5..fdcd799bb1 100644 --- a/lib/js/src/compose/types/page.ts +++ b/lib/js/src/compose/types/page.ts @@ -8,13 +8,19 @@ interface PartialPage extends Partial