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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 29 deletions

View file

@ -1566,10 +1566,6 @@
"workflows.empty.heading.userNotSetup": "👋 Welcome!",
"workflows.empty.description": "Create your first workflow",
"workflows.empty.startFromScratch": "Start from scratch",
"workflows.empty.browseTemplates": "Browse templates",
"workflows.empty.viewDemo": "View a demo workflow",
"workflows.viewDemoNotice": "Learn automation key concepts with our demo workflow",
"workflows.viewDemo": "View demo workflow",
"workflows.shareModal.title": "Share '{name}'",
"workflows.shareModal.select.placeholder": "Add users...",
"workflows.shareModal.list.delete": "Remove access",

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(),