fix(editor): Show v1 banner dismiss button if owner (#7722)

Github issue / Community forum post (link here to close automatically):

https://community.n8n.io/t/v1-upgrade-banner-shall-be-dismissed-permanently/32775
This commit is contained in:
Mutasem Aldmour
2023-11-17 14:15:13 +01:00
committed by GitHub
parent ce002a6cc6
commit 44d3b3ed7e
3 changed files with 139 additions and 3 deletions

View File

@@ -5,8 +5,7 @@ import { useUsersStore } from '@/stores/users.store';
import { useUIStore } from '@/stores/ui.store';
const uiStore = useUIStore();
const { isInstanceOwner } = useUsersStore();
const usersStore = useUsersStore();
async function dismissPermanently() {
await uiStore.dismissBanner('V1', 'permanent');
@@ -18,7 +17,7 @@ async function dismissPermanently() {
<template #mainContent>
<span v-html="locale.baseText('banners.v1.message')"></span>
<a
v-if="isInstanceOwner"
v-if="usersStore.isInstanceOwner"
:class="$style.link"
@click="dismissPermanently"
data-test-id="banner-confirm-v1"