From 00016b842a09ac215304416ede1250c0fa34f804 Mon Sep 17 00:00:00 2001 From: nicbovee Date: Wed, 15 Dec 2021 16:23:46 -0700 Subject: [PATCH] feat(settings): Add "show_new_request" check box to settings. --- manifest.json | 14 ++++- templates/header.hbs | 117 +++++++++++++++++++----------------- translations.yml | 16 +++++ translations/en-us.json | 7 ++- translations/en-x-keys.json | 7 ++- 5 files changed, 101 insertions(+), 60 deletions(-) diff --git a/manifest.json b/manifest.json index b5c0b52ec..d46b124d6 100644 --- a/manifest.json +++ b/manifest.json @@ -384,6 +384,18 @@ "value": true } ] + }, + { + "label": "navigation_settings_label", + "variables": [ + { + "identifier": "show_new_request", + "type": "checkbox", + "description": "show_new_request_description", + "label": "show_new_request_label", + "value": true + } + ] } ] -} +} \ No newline at end of file diff --git a/templates/header.hbs b/templates/header.hbs index 96b626fe3..c384e59f8 100644 --- a/templates/header.hbs +++ b/templates/header.hbs @@ -3,10 +3,10 @@
@@ -14,84 +14,91 @@ {{#if signed_in}} - -
+ \ No newline at end of file diff --git a/translations.yml b/translations.yml index bf889202d..b4f08c6bd 100644 --- a/translations.yml +++ b/translations.yml @@ -365,3 +365,19 @@ parts: title: "Description for the show brand name setting" screenshot: "https://drive.google.com/file/d/16zQao3zk3uRScIUpkyc6bXAWwqHh3Zh-/view?usp=sharing" value: "Display the Help Center name next to the logo" + - translation: + key: "txt.help_center_copenhagen_theme.navigation_settings_label" + title: "Label for navigation settings group" + screenshot: "https://drive.google.com/file/d/1Rk7x7YrGfKvgivs1fXcjrsIjZ2EchWTh/view" + value: "Navigation Settings" + - translation: + key: "txt.help_center_copenhagen_theme.show_new_request_label" + title: "Label for the show new request link setting" + screenshot: "https://drive.google.com/file/d/1Rk7x7YrGfKvgivs1fXcjrsIjZ2EchWTh/view" + value: "Submit a request" + - translation: + key: "txt.help_center_copenhagen_theme.show_new_request_description" + title: "Description for the show new request link setting" + screenshot: "https://drive.google.com/file/d/1Rk7x7YrGfKvgivs1fXcjrsIjZ2EchWTh/view" + value: "Show submit a request link in the navigation" + diff --git a/translations/en-us.json b/translations/en-us.json index eb5e451ea..246a34426 100644 --- a/translations/en-us.json +++ b/translations/en-us.json @@ -66,5 +66,8 @@ "follow_topic_label": "Follow", "follow_topic_description": "Users can follow a specific topic", "show_brand_name_label": "Show Help Center name", - "show_brand_name_description": "Display the Help Center name next to the logo" -} + "show_brand_name_description": "Display the Help Center name next to the logo", + "navigation_settings_label": "Navigation Settings", + "show_new_request_label": "Submit a request", + "show_new_request_description": "Show the submit a request link in the navigation" +} \ No newline at end of file diff --git a/translations/en-x-keys.json b/translations/en-x-keys.json index c1c23ac60..88960fd9f 100644 --- a/translations/en-x-keys.json +++ b/translations/en-x-keys.json @@ -26,5 +26,8 @@ "community_background_image_description": "txt.help_center_copenhagen_theme.community_background_image_description", "community_background_image_label": "txt.help_center_copenhagen_theme.community_background_image_label", "community_image_description": "txt.help_center_copenhagen_theme.community_image_description", - "community_image_label": "txt.help_center_copenhagen_theme.community_image_label" -} + "community_image_label": "txt.help_center_copenhagen_theme.community_image_label", + "navigation_settings_label": "txt.help_center_copenhagen_theme.navigation_settings_label", + "show_new_request_label": "txt.help_center_copenhagen_theme.show_new_request_label", + "show_new_request_description": "txt.help_center_copenhagen_theme.show_new_request_description" +} \ No newline at end of file