diff --git a/frontend/src/components/Settings/AssignmentRules/AssigneeRules.vue b/frontend/src/components/Settings/AssignmentRules/AssigneeRules.vue index 03f3f849..78bc4938 100644 --- a/frontend/src/components/Settings/AssignmentRules/AssigneeRules.vue +++ b/frontend/src/components/Settings/AssignmentRules/AssigneeRules.vue @@ -7,7 +7,8 @@ {{ __( - 'Define who receives the tickets and how they’re distributed among agents.', + 'Define who receives the {0} and how they’re distributed among agents.', + [documentType], ) }} @@ -15,11 +16,19 @@
- {{ __('Ticket Routing') }} + {{ + __('{0} Routing', [ + assignmentRuleData.documentType == 'CRM Lead' + ? __('Lead') + : __('Deal'), + ]) + }}
{{ - __('Choose how tickets are distributed among selected assignees.') + __('Choose how {0} are distributed among selected assignees.', [ + documentType, + ]) }}
@@ -32,7 +41,7 @@ >
{{ - ticketRoutingOptions.find( + documentRoutingOptions.find( (option) => option.value == assignmentRuleData.rule, )?.label }} @@ -45,7 +54,7 @@ class="p-1 text-ink-gray-7 mt-1 w-48 bg-white shadow-xl rounded" >
- {{ __('Choose who receives the tickets.') }} + {{ __('Choose who receives the {0}.', [documentType]) }}
@@ -119,8 +128,13 @@ const { getUser } = usersStore() const assignmentRuleData = inject('assignmentRuleData') const assignmentRuleErrors = inject('assignmentRuleErrors') const validateAssignmentRule = inject('validateAssignmentRule') +const documentType = computed(() => + assignmentRuleData.value.documentType == 'CRM Lead' + ? __('leads') + : __('deals'), +) -const ticketRoutingOptions = [ +const documentRoutingOptions = [ { label: 'Auto-rotate', value: 'Round Robin', diff --git a/frontend/src/components/Settings/AssignmentRules/AssignmentRuleView.vue b/frontend/src/components/Settings/AssignmentRules/AssignmentRuleView.vue index d8891116..f6dce641 100644 --- a/frontend/src/components/Settings/AssignmentRules/AssignmentRuleView.vue +++ b/frontend/src/components/Settings/AssignmentRules/AssignmentRuleView.vue @@ -154,7 +154,9 @@
{{ - __('Choose which tickets are affected by this assignment rule.') + __('Choose which {0} are affected by this assignment rule.', [ + documentType, + ]) }} {{ - __( - 'Choose which tickets are affected by this un-assignment rule.', - ) + __('Choose which {0} are affected by this un-assignment rule.', [ + documentType, + ]) }} + assignmentRuleData.value.documentType == 'CRM Lead' + ? __('leads') + : __('deals'), +) const deskUrl = `${window.location.origin}/app/assignment-rule/${step.value.data?.name}` const defaultAssignmentDays = [ diff --git a/frontend/src/components/Settings/AssignmentRules/AssignmentRules.vue b/frontend/src/components/Settings/AssignmentRules/AssignmentRules.vue index 00be9101..c96ab3d2 100644 --- a/frontend/src/components/Settings/AssignmentRules/AssignmentRules.vue +++ b/frontend/src/components/Settings/AssignmentRules/AssignmentRules.vue @@ -1,14 +1,14 @@ diff --git a/frontend/src/components/Settings/EmailTemplate/EditEmailTemplate.vue b/frontend/src/components/Settings/EmailTemplate/EditEmailTemplate.vue index 9554e0bf..fdeeda4b 100644 --- a/frontend/src/components/Settings/EmailTemplate/EditEmailTemplate.vue +++ b/frontend/src/components/Settings/EmailTemplate/EditEmailTemplate.vue @@ -9,7 +9,7 @@ :label="__(template.name)" size="md" @click="() => emit('updateStep', 'template-list')" - class="text-xl !h-7 font-semibold hover:bg-transparent focus:bg-transparent focus:outline-none focus:ring-0 focus:ring-offset-0 focus-visible:none active:bg-transparent active:outline-none active:ring-0 active:ring-offset-0 active:text-ink-gray-5" + class="cursor-pointer hover:bg-transparent focus:bg-transparent focus:outline-none focus:ring-0 focus:ring-offset-0 focus-visible:none active:bg-transparent active:outline-none active:ring-0 active:ring-offset-0 active:text-ink-gray-5 font-semibold text-xl hover:opacity-70 !pr-0 !max-w-96 !justify-start" />
diff --git a/frontend/src/components/Settings/EmailTemplate/NewEmailTemplate.vue b/frontend/src/components/Settings/EmailTemplate/NewEmailTemplate.vue index 16e645a7..699b5c34 100644 --- a/frontend/src/components/Settings/EmailTemplate/NewEmailTemplate.vue +++ b/frontend/src/components/Settings/EmailTemplate/NewEmailTemplate.vue @@ -11,7 +11,7 @@ " size="md" @click="() => emit('updateStep', 'template-list')" - class="text-xl !h-7 font-semibold hover:bg-transparent focus:bg-transparent focus:outline-none focus:ring-0 focus:ring-offset-0 focus-visible:none active:bg-transparent active:outline-none active:ring-0 active:ring-offset-0 active:text-ink-gray-5" + class="cursor-pointer hover:bg-transparent focus:bg-transparent focus:outline-none focus:ring-0 focus:ring-offset-0 focus-visible:none active:bg-transparent active:outline-none active:ring-0 active:ring-offset-0 active:text-ink-gray-5 font-semibold text-xl hover:opacity-70 !pr-0 !max-w-96 !justify-start" />
diff --git a/frontend/src/components/Settings/General/BrandSettings.vue b/frontend/src/components/Settings/General/BrandSettings.vue index f67de7f1..448e59be 100644 --- a/frontend/src/components/Settings/General/BrandSettings.vue +++ b/frontend/src/components/Settings/General/BrandSettings.vue @@ -9,7 +9,7 @@ :label="__('Brand settings')" size="md" @click="() => emit('updateStep', 'general-settings')" - class="text-xl !h-7 font-semibold hover:bg-transparent focus:bg-transparent focus:outline-none focus:ring-0 focus:ring-offset-0 focus-visible:none active:bg-transparent active:outline-none active:ring-0 active:ring-offset-0 active:text-ink-gray-5" + class="cursor-pointer hover:bg-transparent focus:bg-transparent focus:outline-none focus:ring-0 focus:ring-offset-0 focus-visible:none active:bg-transparent active:outline-none active:ring-0 active:ring-offset-0 active:text-ink-gray-5 font-semibold text-xl hover:opacity-70 !justify-start" />