From 9c7d46b53bf32b7cbb59954fd1d907cd78f76aa6 Mon Sep 17 00:00:00 2001 From: formsdev <136701234+formsdev@users.noreply.github.com> Date: Fri, 5 Jan 2024 15:30:34 +0530 Subject: [PATCH] Templates pages migration (#275) --- client/components/global/Navbar.vue | 2 +- .../templates/FormTemplateModal.vue | 202 ++++++++---------- client/pages/templates/[slug].vue | 12 +- client/pages/templates/industries/[slug].vue | 2 +- client/pages/templates/my-templates.vue | 42 ++-- 5 files changed, 121 insertions(+), 139 deletions(-) diff --git a/client/components/global/Navbar.vue b/client/components/global/Navbar.vue index 4016b69..506cfcb 100644 --- a/client/components/global/Navbar.vue +++ b/client/components/global/Navbar.vue @@ -203,7 +203,7 @@ export default { return !this.appStore.navbarHidden }, userOnboarded() { - return this.user && this.user.workspaces_count > 0 + return this.user && this.user.has_forms === true }, hasCrisp() { return this.config.crispWebsiteId diff --git a/client/components/open/forms/components/templates/FormTemplateModal.vue b/client/components/open/forms/components/templates/FormTemplateModal.vue index c634bc7..b81ce46 100644 --- a/client/components/open/forms/components/templates/FormTemplateModal.vue +++ b/client/components/open/forms/components/templates/FormTemplateModal.vue @@ -1,5 +1,5 @@