Skip to content

Commit

Permalink
fix: Update sales templates card content (no-changelog) (#9155)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiloradFilipovic committed Apr 18, 2024
1 parent 08e3502 commit 5310196
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/editor-ui/src/views/WorkflowsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,9 @@
data-test-id="browse-sales-templates-card"
@click="trackCategoryLinkClick('Sales')"
>
<n8n-icon :class="$style.emptyStateCardIcon" icon="handshake" />
<n8n-icon :class="$style.emptyStateCardIcon" icon="box-open" />
<n8n-text size="large" class="mt-xs" color="text-base">
{{
$locale.baseText('workflows.empty.browseTemplates', {
interpolate: { category: 'Sales' },
})
}}
{{ $locale.baseText('workflows.empty.browseTemplates') }}
</n8n-text>
</n8n-card>
</a>
Expand Down Expand Up @@ -268,6 +264,9 @@ const WorkflowsView = defineComponent({
return userRole;
},
isSalesUser() {
if (!this.userRole) {
return false;
}
return ['Sales', 'sales-and-marketing'].includes(this.userRole);
},
},
Expand Down

0 comments on commit 5310196

Please sign in to comment.