mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
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:
parent
2579fe9631
commit
6d64e3d40e
|
@ -1604,6 +1604,7 @@
|
||||||
"variables.heading": "Variables",
|
"variables.heading": "Variables",
|
||||||
"variables.add": "Add Variable",
|
"variables.add": "Add Variable",
|
||||||
"variables.add.unavailable": "Upgrade plan to keep using variables",
|
"variables.add.unavailable": "Upgrade plan to keep using variables",
|
||||||
|
"variables.add.unavailable.empty": "Upgrade plan to start using variables",
|
||||||
"variables.add.onlyOwnerCanCreate": "Only owner can create variables",
|
"variables.add.onlyOwnerCanCreate": "Only owner can create variables",
|
||||||
"variables.empty.heading": "{name}, let's set up a variable",
|
"variables.empty.heading": "{name}, let's set up a variable",
|
||||||
"variables.empty.heading.userNotSetup": "Set up a variable",
|
"variables.empty.heading.userNotSetup": "Set up a variable",
|
||||||
|
|
|
@ -236,7 +236,9 @@ function displayName(resource: EnvironmentVariable) {
|
||||||
</n8n-button>
|
</n8n-button>
|
||||||
</div>
|
</div>
|
||||||
<template #content>
|
<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>
|
<span v-else>{{ i18n.baseText('variables.add.onlyOwnerCanCreate') }}</span>
|
||||||
</template>
|
</template>
|
||||||
</n8n-tooltip>
|
</n8n-tooltip>
|
||||||
|
|
Loading…
Reference in a new issue