fix(editor): Show appropriate empty workflow list content when instance environment is readonly (#6610)

This commit is contained in:
Csaba Tuncsik
2023-07-06 15:57:39 +02:00
committed by GitHub
parent 8002213538
commit 7515f7d52a
3 changed files with 11 additions and 7 deletions

View File

@@ -23,7 +23,7 @@
:readOnly="readOnlyEnv"
/>
</template>
<template v-if="!readOnlyEnv" #empty>
<template #empty>
<div class="text-center mt-s">
<n8n-heading tag="h2" size="xlarge" class="mb-2xs">
{{
@@ -36,10 +36,16 @@
}}
</n8n-heading>
<n8n-text size="large" color="text-base">
{{ $locale.baseText('workflows.empty.description') }}
{{
$locale.baseText(
readOnlyEnv
? 'workflows.empty.description.readOnlyEnv'
: 'workflows.empty.description',
)
}}
</n8n-text>
</div>
<div :class="['text-center', 'mt-2xl', $style.actionsContainer]">
<div v-if="!readOnlyEnv" :class="['text-center', 'mt-2xl', $style.actionsContainer]">
<n8n-card
:class="$style.emptyStateCard"
hoverable