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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user