From 462f44a99c31b54b3ae106959e350699e7ba4e8c Mon Sep 17 00:00:00 2001 From: Jeffrey Zang <66485719+jeffrey-zang@users.noreply.github.com> Date: Thu, 26 Jan 2023 03:33:43 -0500 Subject: [PATCH] fix: navbar help link (#77) * fix: navbar help link * fix: update links.php --- config/links.php | 2 +- package-lock.json | 1 + resources/js/components/Navbar.vue | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/links.php b/config/links.php index 3cec7c0..51668b9 100644 --- a/config/links.php +++ b/config/links.php @@ -1,7 +1,7 @@ 'https://help.opnform.com/', + 'help_url' => 'https://github.com/JhumanJ/OpnForm/discussions', 'helpdesk_sitemap_url' => 'https://notionforms.crisp.help/sitemap.xml', 'changelog_url' => 'https://opnform.canny.io/changelog', 'github_url' => 'https://github.com/JhumanJ/OpnForm', diff --git a/package-lock.json b/package-lock.json index 6df1eb1..5049236 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21381,6 +21381,7 @@ "normalize-path": "^3.0.0", "object-hash": "^3.0.0", "picocolors": "^1.0.0", + "postcss": "^8.4.18", "postcss-import": "^14.1.0", "postcss-js": "^4.0.0", "postcss-load-config": "^3.1.4", diff --git a/resources/js/components/Navbar.vue b/resources/js/components/Navbar.vue index 1440a8a..e59ce61 100644 --- a/resources/js/components/Navbar.vue +++ b/resources/js/components/Navbar.vue @@ -24,7 +24,7 @@ > Help - Help @@ -147,6 +147,7 @@ export default { computed: { githubUrl: () => window.config.links.github_url, + helpUrl: () => window.config.links.help_url, form() { if (this.$route.name && this.$route.name.startsWith('forms.show_public')) { return this.$store.getters['open/forms/getBySlug'](this.$route.params.slug) @@ -182,7 +183,7 @@ export default { }, hasCrisp() { return window.config.crisp_website_id - } + }, }, methods: {