fix(editor): Clean up demo and template callouts from workflows page (#6023)

* fix(editor): clean up demo callouts

* fix(editor): clean up i18n
This commit is contained in:
Mutasem Aldmour
2023-04-20 12:33:32 +02:00
committed by GitHub
parent 0970ec066d
commit 4ee508385a
2 changed files with 0 additions and 29 deletions

View File

@@ -11,17 +11,6 @@
@click:add="addWorkflow"
@update:filters="filters = $event"
>
<template #callout v-if="!hasActiveWorkflows">
<n8n-callout theme="secondary" icon="graduation-cap" class="mb-xs">
{{ $locale.baseText('workflows.viewDemoNotice') }}
<template #trailingContent>
<n8n-link size="small" theme="secondary" bold underline @click="goToTemplates">
{{ $locale.baseText('workflows.viewDemo') }}
</n8n-link>
</template>
</n8n-callout>
</template>
<template #default="{ data, updateItemSize }">
<workflow-card
data-test-id="resources-list-item"
@@ -59,17 +48,6 @@
{{ $locale.baseText('workflows.empty.startFromScratch') }}
</n8n-text>
</n8n-card>
<n8n-card
:class="$style.emptyStateCard"
hoverable
@click="goToTemplates"
data-test-id="new-workflow-template-card"
>
<n8n-icon :class="$style.emptyStateCardIcon" icon="graduation-cap" />
<n8n-text size="large" class="mt-xs" color="text-base">
{{ $locale.baseText('workflows.empty.viewDemo') }}
</n8n-text>
</n8n-card>
</div>
</template>
<template #filters="{ setKeyValue }">
@@ -209,9 +187,6 @@ const WorkflowsView = mixins(showMessage, debounceHelper).extend({
source: 'Workflows list',
});
},
goToTemplates() {
this.$router.push({ name: VIEWS.TEMPLATES });
},
async initialize() {
await Promise.all([
this.usersStore.fetchUsers(),