Front-end error fixing
This commit is contained in:
parent
9228f92903
commit
32fd9f84a2
|
@ -60,8 +60,8 @@ export default {
|
||||||
}),
|
}),
|
||||||
shouldDisplayProTag() {
|
shouldDisplayProTag() {
|
||||||
if (!window.config.paid_plans_enabled) return false
|
if (!window.config.paid_plans_enabled) return false
|
||||||
if (!this.user) return true
|
if (!this.user || !this.currentWorkSpace) return true
|
||||||
return !(this.currentWorkSpace().is_pro || this.currentWorkSpace().is_enterprise)
|
return !(this.currentWorkSpace.is_pro)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
</svg>
|
</svg>
|
||||||
Duplicate form
|
Duplicate form
|
||||||
</a>
|
</a>
|
||||||
<a href="#" v-if="user.template_editor"
|
<a href="#" v-if="user && user.template_editor"
|
||||||
class="block block px-4 py-2 text-md text-gray-700 dark:text-white hover:bg-gray-100 hover:text-gray-900 dark:text-gray-100 dark:hover:text-white dark:hover:bg-gray-600 flex items-center"
|
class="block block px-4 py-2 text-md text-gray-700 dark:text-white hover:bg-gray-100 hover:text-gray-900 dark:text-gray-100 dark:hover:text-white dark:hover:bg-gray-600 flex items-center"
|
||||||
@click.prevent="showFormTemplateModal=true"
|
@click.prevent="showFormTemplateModal=true"
|
||||||
>
|
>
|
||||||
|
|
|
@ -131,7 +131,9 @@ export default {
|
||||||
this.isGuest = false
|
this.isGuest = false
|
||||||
this.loadWorkspaces()
|
this.loadWorkspaces()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
if (this.$refs.editor) {
|
||||||
this.$refs.editor.saveFormCreate()
|
this.$refs.editor.saveFormCreate()
|
||||||
|
}
|
||||||
}, 500)
|
}, 500)
|
||||||
},
|
},
|
||||||
formGenerated(form) {
|
formGenerated(form) {
|
||||||
|
|
Loading…
Reference in New Issue