Browse Source

chore(gui-v2): replace useGlobalState usages with useGlobal

pull/2877/head
braks 2 years ago
parent
commit
6c56aececd
  1. 2
      packages/nc-gui-v2/components/tabs/auth/user-management/FeedbackForm.vue
  2. 2
      packages/nc-gui-v2/plugins/initializeFeedbackForm.ts

2
packages/nc-gui-v2/components/tabs/auth/user-management/FeedbackForm.vue

@ -1,7 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import CloseIcon from '~icons/material-symbols/close-rounded' import CloseIcon from '~icons/material-symbols/close-rounded'
const { feedbackForm } = $(useGlobalState()) const { feedbackForm } = useGlobal()
</script> </script>
<template> <template>

2
packages/nc-gui-v2/plugins/initializeFeedbackForm.ts

@ -3,7 +3,7 @@ import dayjs from 'dayjs'
import { defineNuxtPlugin } from '#app' import { defineNuxtPlugin } from '#app'
const handleFeedbackForm = async () => { const handleFeedbackForm = async () => {
let { feedbackForm: currentFeedbackForm } = $(useGlobalState()) let { feedbackForm: currentFeedbackForm } = $(useGlobal())
if (!currentFeedbackForm) return if (!currentFeedbackForm) return
const { $api } = useNuxtApp() const { $api } = useNuxtApp()

Loading…
Cancel
Save