Browse Source

Merge pull request #7248 from nocodb/fix/poller

fix: poll plugin
pull/7250/head
mertmit 11 months ago committed by GitHub
parent
commit
e03564da3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      packages/nc-gui/plugins/poller.ts

8
packages/nc-gui/plugins/poller.ts

@ -1,7 +1,7 @@
import type { Api as BaseAPI } from 'nocodb-sdk'
import { defineNuxtPlugin } from '#imports'
export default defineNuxtPlugin(async (nuxtApp) => {
const pollPlugin = async (nuxtApp) => {
const api: BaseAPI<any> = nuxtApp.$api as any
// unsubscribe all if signed out
@ -89,4 +89,10 @@ export default defineNuxtPlugin(async (nuxtApp) => {
}
nuxtApp.provide('poller', poller)
}
export default defineNuxtPlugin(async function (nuxtApp) {
if (!isEeUI) return await pollPlugin(nuxtApp)
})
export { pollPlugin }

Loading…
Cancel
Save