Fixed most of the form/show pages
This commit is contained in:
@@ -162,7 +162,7 @@ export default {
|
||||
helpUrl: () => this.config.links.help_url,
|
||||
form () {
|
||||
if (this.$route.name && this.$route.name.startsWith('forms.show_public')) {
|
||||
return this.formsStore.getBySlug(this.$route.params.slug)
|
||||
return this.formsStore.getByKey(this.$route.params.slug)
|
||||
}
|
||||
return null
|
||||
},
|
||||
|
||||
@@ -80,13 +80,13 @@ export default {
|
||||
switchWorkspace (workspace) {
|
||||
this.workspacesStore.setCurrentId(workspace.id)
|
||||
this.formsStore.resetState()
|
||||
this.formsStore.load(workspace.id)
|
||||
this.formsStore.loadAll(workspace.id)
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
if (route.name !== 'home') {
|
||||
router.push({ name: 'home' })
|
||||
}
|
||||
this.formsStore.load(workspace.id)
|
||||
this.formsStore.loadAll(workspace.id)
|
||||
},
|
||||
isUrl (str) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user