fix(editor): Add correct add variable button message when no variables created (no-changelog) (#6028)
fix: add correct add variable button message when no variables created
This commit is contained in:
@@ -236,7 +236,9 @@ function displayName(resource: EnvironmentVariable) {
|
||||
</n8n-button>
|
||||
</div>
|
||||
<template #content>
|
||||
<span v-if="!isFeatureEnabled">{{ i18n.baseText('variables.add.unavailable') }}</span>
|
||||
<span v-if="!isFeatureEnabled">{{
|
||||
i18n.baseText(`variables.add.unavailable${allVariables.length === 0 ? '.empty' : ''}`)
|
||||
}}</span>
|
||||
<span v-else>{{ i18n.baseText('variables.add.onlyOwnerCanCreate') }}</span>
|
||||
</template>
|
||||
</n8n-tooltip>
|
||||
|
||||
Reference in New Issue
Block a user