From 3c592db6fbebd7068de8ad2dcb88d8ad84b48d6a Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Fri, 29 Jul 2022 13:57:54 +0530 Subject: [PATCH] chore/gui-v2-user-management-cleanup --- packages/nc-gui-v2/composables/useGlobalState/index.ts | 2 +- packages/nc-gui-v2/plugins/init.ts | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/nc-gui-v2/composables/useGlobalState/index.ts b/packages/nc-gui-v2/composables/useGlobalState/index.ts index 268299eb99..6f31e25911 100644 --- a/packages/nc-gui-v2/composables/useGlobalState/index.ts +++ b/packages/nc-gui-v2/composables/useGlobalState/index.ts @@ -1,7 +1,7 @@ import { breakpointsTailwind, usePreferredLanguages, useStorage } from '@vueuse/core' import { useJwt } from '@vueuse/integrations/useJwt' import type { JwtPayload } from 'jwt-decode' -import initialFeedBackForm from './initialFeedBackForm' +import initialFeedBackForm from './initialFeedbackForm' import { computed, ref, toRefs, useBreakpoints, useNuxtApp, useTimestamp, watch } from '#imports' import type { Actions, Getters, GlobalState, StoredState, User } from '~/lib/types' diff --git a/packages/nc-gui-v2/plugins/init.ts b/packages/nc-gui-v2/plugins/init.ts index c1d90253c6..e193b09f44 100644 --- a/packages/nc-gui-v2/plugins/init.ts +++ b/packages/nc-gui-v2/plugins/init.ts @@ -37,10 +37,6 @@ const handleFeedbackForm = async () => { } } -const handleInitFunctions = async () => { +export default defineNuxtPlugin(async () => { await handleFeedbackForm() -} - -export default defineNuxtPlugin((nuxtApp) => { - nuxtApp.vueApp.use(handleInitFunctions) })