Skip to content

Commit

Permalink
pkp/pkp-lib#10571 Load texts from locale
Browse files Browse the repository at this point in the history
  • Loading branch information
taslangraham committed Nov 12, 2024
1 parent 9d1730d commit 3a6d34f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 1 addition & 5 deletions src/components/Container/ManageEmailsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ export default {
template = template || {};
this.currentTemplate = template;
const {openSideModal} = useModal();
this.$nextTick(() =>
openSideModal(EditTemplateModal, {
title: this.currentTemplate
Expand Down Expand Up @@ -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),
);
}
Expand Down
5 changes: 2 additions & 3 deletions src/components/Form/fields/FieldEmailTemplateUnrestricted.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
type="checkbox"
/>
<label>
Mark as unrestricted
{{ t('admin.workflow.email.userGroup.allowed') }}
<sub>
Unrestricted templates will be accessible to all user groups
associated with this template
{{ t('workflow.email.userGroup.unrestricted.template.note') }}
</sub>
</label>
</span>
Expand Down

0 comments on commit 3a6d34f

Please sign in to comment.