diff --git a/packages/nc-gui/app.html b/packages/nc-gui/app.html new file mode 100644 index 0000000000..bce548b29a --- /dev/null +++ b/packages/nc-gui/app.html @@ -0,0 +1,18 @@ + + +
+ {{ HEAD }} + + +{{ APP }} + + + diff --git a/packages/nc-gui/plugins/projectLoader.js b/packages/nc-gui/plugins/projectLoader.js index 429e02533d..3b96c7dfaa 100644 --- a/packages/nc-gui/plugins/projectLoader.js +++ b/packages/nc-gui/plugins/projectLoader.js @@ -49,17 +49,20 @@ export default async({ store, redirect, $axios, $toast, route }) => { } ) - // window.onNuxtReady(async () => { - console.log('===== Within nuxt ready handler =====') - await store.dispatch('project/ActLoadProjectInfo') - console.log('==== Projectinfo ', store.state.project.projectInfo) - if (!store.state.project.projectInfo.projectHasDb) { - redirect('/') - } else if (store.state.project.projectInfo.projectHasAdmin === false) { - redirect('/') + try { + // window.onNuxtReady(async () => { + console.log('===== Within nuxt ready handler =====') + await store.dispatch('project/ActLoadProjectInfo') + console.log('==== Projectinfo ', store.state.project.projectInfo) + if (!store.state.project.projectInfo.projectHasDb) { + redirect('/') + } else if (store.state.project.projectInfo.projectHasAdmin === false) { + redirect('/') + } + // }) + } catch (e) { + console.log(e) } - // }) - // fetch latest release info const fetchReleaseInfo = async() => { try {