From 53101960e6a316201be5026e65d552d42deed5d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milorad=20FIlipovi=C4=87?= Date: Thu, 18 Apr 2024 12:30:30 +0200 Subject: [PATCH] fix: Update sales templates card content (no-changelog) (#9155) --- packages/editor-ui/src/views/WorkflowsView.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/editor-ui/src/views/WorkflowsView.vue b/packages/editor-ui/src/views/WorkflowsView.vue index 5d9b38111c..f49da46efd 100644 --- a/packages/editor-ui/src/views/WorkflowsView.vue +++ b/packages/editor-ui/src/views/WorkflowsView.vue @@ -95,13 +95,9 @@ data-test-id="browse-sales-templates-card" @click="trackCategoryLinkClick('Sales')" > - + - {{ - $locale.baseText('workflows.empty.browseTemplates', { - interpolate: { category: 'Sales' }, - }) - }} + {{ $locale.baseText('workflows.empty.browseTemplates') }} @@ -268,6 +264,9 @@ const WorkflowsView = defineComponent({ return userRole; }, isSalesUser() { + if (!this.userRole) { + return false; + } return ['Sales', 'sales-and-marketing'].includes(this.userRole); }, },