mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
fix(editor): Show appropriate empty workflow list content when instance environment is readonly (#6610)
This commit is contained in:
parent
8002213538
commit
7515f7d52a
|
@ -225,10 +225,7 @@ export default defineComponent({
|
||||||
void this.checkForNewVersions();
|
void this.checkForNewVersions();
|
||||||
void this.checkForCloudPlanData();
|
void this.checkForCloudPlanData();
|
||||||
|
|
||||||
if (
|
if (this.sourceControlStore.isEnterpriseSourceControlEnabled) {
|
||||||
this.sourceControlStore.isEnterpriseSourceControlEnabled &&
|
|
||||||
this.usersStore.isInstanceOwner
|
|
||||||
) {
|
|
||||||
await this.sourceControlStore.getPreferences();
|
await this.sourceControlStore.getPreferences();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1682,6 +1682,7 @@
|
||||||
"workflows.empty.heading": "👋 Welcome {name}!",
|
"workflows.empty.heading": "👋 Welcome {name}!",
|
||||||
"workflows.empty.heading.userNotSetup": "👋 Welcome!",
|
"workflows.empty.heading.userNotSetup": "👋 Welcome!",
|
||||||
"workflows.empty.description": "Create your first workflow",
|
"workflows.empty.description": "Create your first workflow",
|
||||||
|
"workflows.empty.description.readOnlyEnv": "No workflows here yet",
|
||||||
"workflows.empty.startFromScratch": "Start from scratch",
|
"workflows.empty.startFromScratch": "Start from scratch",
|
||||||
"workflows.shareModal.title": "Share '{name}'",
|
"workflows.shareModal.title": "Share '{name}'",
|
||||||
"workflows.shareModal.select.placeholder": "Add users...",
|
"workflows.shareModal.select.placeholder": "Add users...",
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
:readOnly="readOnlyEnv"
|
:readOnly="readOnlyEnv"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="!readOnlyEnv" #empty>
|
<template #empty>
|
||||||
<div class="text-center mt-s">
|
<div class="text-center mt-s">
|
||||||
<n8n-heading tag="h2" size="xlarge" class="mb-2xs">
|
<n8n-heading tag="h2" size="xlarge" class="mb-2xs">
|
||||||
{{
|
{{
|
||||||
|
@ -36,10 +36,16 @@
|
||||||
}}
|
}}
|
||||||
</n8n-heading>
|
</n8n-heading>
|
||||||
<n8n-text size="large" color="text-base">
|
<n8n-text size="large" color="text-base">
|
||||||
{{ $locale.baseText('workflows.empty.description') }}
|
{{
|
||||||
|
$locale.baseText(
|
||||||
|
readOnlyEnv
|
||||||
|
? 'workflows.empty.description.readOnlyEnv'
|
||||||
|
: 'workflows.empty.description',
|
||||||
|
)
|
||||||
|
}}
|
||||||
</n8n-text>
|
</n8n-text>
|
||||||
</div>
|
</div>
|
||||||
<div :class="['text-center', 'mt-2xl', $style.actionsContainer]">
|
<div v-if="!readOnlyEnv" :class="['text-center', 'mt-2xl', $style.actionsContainer]">
|
||||||
<n8n-card
|
<n8n-card
|
||||||
:class="$style.emptyStateCard"
|
:class="$style.emptyStateCard"
|
||||||
hoverable
|
hoverable
|
||||||
|
|
Loading…
Reference in a new issue