fix: Update sales templates card content (no-changelog) (#9155)

This commit is contained in:
Milorad FIlipović 2024-04-18 12:30:30 +02:00 committed by GitHub
parent 08e35027f1
commit 53101960e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,13 +95,9 @@
data-test-id="browse-sales-templates-card" data-test-id="browse-sales-templates-card"
@click="trackCategoryLinkClick('Sales')" @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"> <n8n-text size="large" class="mt-xs" color="text-base">
{{ {{ $locale.baseText('workflows.empty.browseTemplates') }}
$locale.baseText('workflows.empty.browseTemplates', {
interpolate: { category: 'Sales' },
})
}}
</n8n-text> </n8n-text>
</n8n-card> </n8n-card>
</a> </a>
@ -268,6 +264,9 @@ const WorkflowsView = defineComponent({
return userRole; return userRole;
}, },
isSalesUser() { isSalesUser() {
if (!this.userRole) {
return false;
}
return ['Sales', 'sales-and-marketing'].includes(this.userRole); return ['Sales', 'sales-and-marketing'].includes(this.userRole);
}, },
}, },