From 93b5d1b345a5df0677d4c9b94feeb5cbbb1f2df9 Mon Sep 17 00:00:00 2001 From: Taslan Graham Date: Mon, 18 Nov 2024 16:24:34 -0500 Subject: [PATCH] Code cleanup --- src/components/Container/ManageEmailsPage.vue | 2 +- .../fields/FieldEmailTemplateUnrestricted.vue | 17 ++---- .../FieldEmailTemplateUserGroupSettings.vue | 58 +++++++++++++------ 3 files changed, 46 insertions(+), 31 deletions(-) diff --git a/src/components/Container/ManageEmailsPage.vue b/src/components/Container/ManageEmailsPage.vue index 4cd43f96e..d71f0eb6b 100644 --- a/src/components/Container/ManageEmailsPage.vue +++ b/src/components/Container/ManageEmailsPage.vue @@ -430,7 +430,7 @@ export default { if (field.name === 'userGroupIds') { field.assignableUserGroups = - this.currentMailable['assignableTemplateUserGroups']; + this.currentTemplate['assignableTemplateUserGroups']; field.assignedUserGroupIds = this.currentTemplate['assignedUserGroupIds'] || []; field.isUnrestricted = diff --git a/src/components/Form/fields/FieldEmailTemplateUnrestricted.vue b/src/components/Form/fields/FieldEmailTemplateUnrestricted.vue index be6898569..0097f8a43 100644 --- a/src/components/Form/fields/FieldEmailTemplateUnrestricted.vue +++ b/src/components/Form/fields/FieldEmailTemplateUnrestricted.vue @@ -1,6 +1,5 @@ diff --git a/src/components/Form/fields/FieldEmailTemplateUserGroupSettings.vue b/src/components/Form/fields/FieldEmailTemplateUserGroupSettings.vue index b223317d2..ed12a915e 100644 --- a/src/components/Form/fields/FieldEmailTemplateUserGroupSettings.vue +++ b/src/components/Form/fields/FieldEmailTemplateUserGroupSettings.vue @@ -1,29 +1,55 @@