From 4812d920ab5459a9bca76b4c1d4adbed93b326d0 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sun, 26 Feb 2023 23:26:29 +0530 Subject: [PATCH] fix(gui): extract reactive value using `value` prop Signed-off-by: Pranav C --- packages/nc-gui/components/smartsheet/header/Cell.vue | 8 +++++--- packages/nc-gui/composables/useGlobal/actions.ts | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/header/Cell.vue b/packages/nc-gui/components/smartsheet/header/Cell.vue index 97571bf152..f07c76fd18 100644 --- a/packages/nc-gui/components/smartsheet/header/Cell.vue +++ b/packages/nc-gui/components/smartsheet/header/Cell.vue @@ -37,7 +37,7 @@ const closeAddColumnDropdown = () => { } const openHeaderMenu = () => { - if (!isForm && isUIAllowed('edit-column')) { + if (!isForm.value && isUIAllowed('edit-column')) { editColumnDropdown.value = true } } @@ -51,11 +51,13 @@ const openHeaderMenu = () => { {{ column.title }} + >{{ column.title }}  * diff --git a/packages/nc-gui/composables/useGlobal/actions.ts b/packages/nc-gui/composables/useGlobal/actions.ts index d84148528f..3bac64de43 100644 --- a/packages/nc-gui/composables/useGlobal/actions.ts +++ b/packages/nc-gui/composables/useGlobal/actions.ts @@ -7,7 +7,7 @@ export function useGlobalActions(state: State): Actions { state.token.value = null state.user.value = null try { - if(state.token.value) { + if (state.token.value) { const nuxtApp = useNuxtApp() await nuxtApp.$api.auth.signout() }