mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
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:
parent
0970ec066d
commit
4ee508385a
|
@ -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",
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue