From 3a6d34f38b50576a950b29fb00ca7a9e658459b8 Mon Sep 17 00:00:00 2001 From: Taslan Graham Date: Tue, 12 Nov 2024 11:34:35 -0500 Subject: [PATCH] pkp/pkp-lib#10571 Load texts from locale --- src/components/Container/ManageEmailsPage.vue | 6 +----- .../Form/fields/FieldEmailTemplateUnrestricted.vue | 5 ++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/components/Container/ManageEmailsPage.vue b/src/components/Container/ManageEmailsPage.vue index 4e9b2442a..a2ff03cd8 100644 --- a/src/components/Container/ManageEmailsPage.vue +++ b/src/components/Container/ManageEmailsPage.vue @@ -346,7 +346,6 @@ export default { template = template || {}; this.currentTemplate = template; const {openSideModal} = useModal(); - this.$nextTick(() => openSideModal(EditTemplateModal, { title: this.currentTemplate @@ -409,10 +408,7 @@ export default { // Remove user group fields if current mailable does not support specifying user group access if (!this.currentMailable.canAssignUserGroupToTemplates) { templateForm.fields = templateForm.fields.filter( - (field) => field.name !== 'userGroupIds', - ); - templateForm.fields = templateForm.fields.filter( - (field) => field.name !== 'isUnrestricted', + (field) => !['userGroupIds', 'isUnrestricted'].includes(field.name), ); } diff --git a/src/components/Form/fields/FieldEmailTemplateUnrestricted.vue b/src/components/Form/fields/FieldEmailTemplateUnrestricted.vue index 6e7c9535c..ee50ac25d 100644 --- a/src/components/Form/fields/FieldEmailTemplateUnrestricted.vue +++ b/src/components/Form/fields/FieldEmailTemplateUnrestricted.vue @@ -10,10 +10,9 @@ type="checkbox" />