mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Add paywall state to non owner users for Variables (#6679)
* fix(editor): Add paywall state to non owner users for Variables * fix(editor): Add variables view tests * fix(editor): remove link from paywall state for non owner * fix(editor): fix displaying logic
This commit is contained in:
@@ -278,8 +278,9 @@ onBeforeUnmount(() => {
|
||||
@click="goToUpgrade"
|
||||
/>
|
||||
</template>
|
||||
<template v-if="!isFeatureEnabled" #empty>
|
||||
<template v-if="!isFeatureEnabled || (isFeatureEnabled && !canCreateVariables)" #empty>
|
||||
<n8n-action-box
|
||||
v-if="!isFeatureEnabled"
|
||||
data-test-id="unavailable-resources-list"
|
||||
emoji="👋"
|
||||
:heading="$locale.baseText(contextBasedTranslationKeys.variables.unavailable.title)"
|
||||
@@ -290,6 +291,18 @@ onBeforeUnmount(() => {
|
||||
buttonType="secondary"
|
||||
@click="goToUpgrade"
|
||||
/>
|
||||
<n8n-action-box
|
||||
v-else-if="!canCreateVariables"
|
||||
data-test-id="cannot-create-variables"
|
||||
emoji="👋"
|
||||
:heading="
|
||||
$locale.baseText('variables.empty.notAllowedToCreate.heading', {
|
||||
interpolate: { name: usersStore.currentUser.firstName },
|
||||
})
|
||||
"
|
||||
:description="$locale.baseText('variables.empty.notAllowedToCreate.description')"
|
||||
@click="goToUpgrade"
|
||||
/>
|
||||
</template>
|
||||
<template #default="{ data }">
|
||||
<VariablesRow
|
||||
|
||||
Reference in New Issue
Block a user