Fixed form creation

This commit is contained in:
Julien Nahum
2023-12-20 16:10:32 +01:00
parent b598a16406
commit af5656ce81
34 changed files with 363 additions and 356 deletions

View File

@@ -33,7 +33,6 @@ const open = (event) => {
}
const close = (event) => {
console.log('closing')
isOpen.value = false
}

View File

@@ -144,15 +144,14 @@ export default {
},
setup () {
const authStore = useAuthStore()
const formsStore = useFormsStore()
const workspacesStore = useWorkspacesStore()
const {openCrisp} = useCrisp()
const authStore = useAuthStore()
return {
authStore,
formsStore,
workspacesStore,
openCrisp,
appStore: useAppStore(),
formsStore: useFormsStore(),
workspacesStore: useWorkspacesStore(),
config: useConfig(),
user: computed(() => authStore.user),
isIframe: useIsIframe(),
@@ -189,7 +188,7 @@ export default {
return false
}
}
return !this.$root.navbarHidden
return !this.appStore.navbarHidden
},
userOnboarded () {
return this.user && this.user.workspaces_count > 0

View File

@@ -79,7 +79,8 @@ export default {
methods: {
switchWorkspace (workspace) {
this.workspacesStore.setCurrentId(workspace.id)
this.$refs.dropdown.close()
this.formsStore.resetState()
this.formsStore.load(workspace.id)
const router = useRouter()
const route = useRoute()
if (route.name !== 'home') {