mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-23 04:39:08 +00:00
fix(editor): Show appropriate empty workflow list content when instance environment is readonly (#6610)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user