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 25, 2024
1 parent 7a28f83 commit 50b1752
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 131 deletions.
22 changes: 2 additions & 20 deletions src/components/Container/ManageEmailsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ export default {
template = template || {};
this.currentTemplate = template;
const {openSideModal} = useModal();
this.$nextTick(() =>
openSideModal(EditTemplateModal, {
title: this.currentTemplate
Expand Down Expand Up @@ -412,10 +411,8 @@ 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) =>
!['assignedUserGroupIds', 'isUnrestricted'].includes(field.name),
);
}
Expand All @@ -431,21 +428,6 @@ export default {
};
});
}
if (field.name === 'userGroupIds') {
field.assignableUserGroups =
this.currentMailable['assignableTemplateUserGroups'];
field.assignedUserGroupIds =
this.currentTemplate['assignedUserGroupIds'] || [];
field.isUnrestricted =
this.currentTemplate['isUnrestricted'] || false;
}
if (field.name === 'isUnrestricted') {
field.isUnrestricted =
this.currentTemplate['isUnrestricted'] || false;
}
return field;
});
Expand Down
4 changes: 0 additions & 4 deletions src/components/Form/FormGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ import FieldTextarea from './fields/FieldTextarea.vue';
import FieldUpload from './fields/FieldUpload.vue';
import FieldSlider from './fields/FieldSlider.vue';
import FieldUploadImage from './fields/FieldUploadImage.vue';
import FieldEmailTemplateUserGroupSettings from './fields/FieldEmailTemplateUserGroupSettings.vue';
import FieldEmailTemplateUnrestricted from './fields/FieldEmailTemplateUnrestricted.vue';
import {shouldShowFieldWithinGroup} from './formHelpers';
Expand Down Expand Up @@ -111,8 +109,6 @@ export default {
FieldSlider,
FieldUpload,
FieldUploadImage,
FieldEmailTemplateUserGroupSettings,
FieldEmailTemplateUnrestricted,
},
props: {
id: String,
Expand Down
52 changes: 0 additions & 52 deletions src/components/Form/fields/FieldEmailTemplateUnrestricted.vue

This file was deleted.

55 changes: 0 additions & 55 deletions src/components/Form/fields/FieldEmailTemplateUserGroupSettings.vue

This file was deleted.

0 comments on commit 50b1752

Please sign in to comment.