diff --git a/app/javascript/dashboard/components/widgets/SettingIntroBanner.vue b/app/javascript/dashboard/components/widgets/SettingIntroBanner.vue index a5e1cd871..0ebee66b8 100644 --- a/app/javascript/dashboard/components/widgets/SettingIntroBanner.vue +++ b/app/javascript/dashboard/components/widgets/SettingIntroBanner.vue @@ -26,8 +26,8 @@ export default { diff --git a/app/javascript/dashboard/i18n/locale/en/helpCenter.json b/app/javascript/dashboard/i18n/locale/en/helpCenter.json index e717d36d8..955122bdb 100644 --- a/app/javascript/dashboard/i18n/locale/en/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/en/helpCenter.json @@ -122,9 +122,28 @@ } } }, + "EDIT": { + "HEADER_TEXT": "Edit portal", + "TABS": { + "BASIC_SETTINGS": { + "TITLE": "Basic information" + }, + "CUSTOMIZATION_SETTINGS": { + "TITLE": "Portal customization" + }, + "CATEGORY_SETTINGS": { + "TITLE": "Categories" + }, + "LOCALE_SETTINGS": { + "TITLE": "Locales" + } + }, + "EDIT_BASIC_INFO": { + "BUTTON_TEXT": "Update basic settings" + } + }, "ADD": { - "CREATE_FLOW": [ - { + "CREATE_FLOW": [{ "title": "Help center information", "route": "new_portal_information", "body": "Basic information about portal", @@ -207,7 +226,9 @@ "ERROR": "Portal header text is required" }, "API": { + "SUCCESS_MESSAGE_FOR_BASIC": "Portal created successfully.", "ERROR_MESSAGE_FOR_BASIC": "Couldn't create the portal. Try again.", + "SUCCESS_MESSAGE_FOR_UPDATE": "Portal updated successfully.", "ERROR_MESSAGE_FOR_UPDATE": "Couldn't update the portal. Try again." } }, diff --git a/app/javascript/dashboard/routes/dashboard/helpcenter/components/HelpCenterLayout.vue b/app/javascript/dashboard/routes/dashboard/helpcenter/components/HelpCenterLayout.vue index ffcd36ec0..4f9b30d97 100644 --- a/app/javascript/dashboard/routes/dashboard/helpcenter/components/HelpCenterLayout.vue +++ b/app/javascript/dashboard/routes/dashboard/helpcenter/components/HelpCenterLayout.vue @@ -262,12 +262,6 @@ export default { closePortalPopover() { this.showPortalPopover = false; }, - openPortalPage() { - this.$router.push({ - name: 'list_all_portals', - }); - this.showPortalPopover = false; - }, onClickOpenAddCatogoryModal() { this.showAddCategoryModal = true; }, diff --git a/app/javascript/dashboard/routes/dashboard/helpcenter/components/PortalPopover.vue b/app/javascript/dashboard/routes/dashboard/helpcenter/components/PortalPopover.vue index c8a4c785e..5be63aa31 100644 --- a/app/javascript/dashboard/routes/dashboard/helpcenter/components/PortalPopover.vue +++ b/app/javascript/dashboard/routes/dashboard/helpcenter/components/PortalPopover.vue @@ -10,7 +10,7 @@ color-scheme="secondary" icon="settings" size="small" - @click="openPortalArticles" + @click="openPortalPage" > {{ $t('HELP_CENTER.PORTAL.POPOVER.PORTAL_SETTINGS') }} @@ -22,10 +22,10 @@