From ae6777a972a33b9730295e75404c3976d3913fa3 Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Fri, 22 Nov 2024 11:13:19 +0000 Subject: [PATCH 1/2] fix tabs highlighting --- frontend/src/pages/application/DeviceGroup/index.vue | 2 +- frontend/src/pages/application/routes.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/application/DeviceGroup/index.vue b/frontend/src/pages/application/DeviceGroup/index.vue index 4467029dd9..b03d0f5924 100644 --- a/frontend/src/pages/application/DeviceGroup/index.vue +++ b/frontend/src/pages/application/DeviceGroup/index.vue @@ -110,7 +110,7 @@ export default { { label: 'Settings', to: { - name: 'ApplicationDeviceGroupSettingsGeneral', + name: 'ApplicationDeviceGroupSettings', params: { applicationId: this.application?.id, deviceGroupId: this.deviceGroup?.id diff --git a/frontend/src/pages/application/routes.js b/frontend/src/pages/application/routes.js index 588eb124b2..8d130362fe 100644 --- a/frontend/src/pages/application/routes.js +++ b/frontend/src/pages/application/routes.js @@ -186,8 +186,8 @@ export default [ meta: { title: 'Application - Device Group - Settings' }, - redirect: to => { - return `/application/${to.params.applicationId}/device-group/${to.params.deviceGroupId}/settings/general` + redirect: { + name: 'ApplicationDeviceGroupSettingsGeneral' }, children: [ { From 2d74e7a630ddecefd21483da0c1890b4106975fe Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Fri, 22 Nov 2024 11:13:54 +0000 Subject: [PATCH 2/2] use SectionTopMenu to follow suit with other page layouts --- .../DeviceGroup/Settings/index.vue | 10 +++++-- .../pages/application/DeviceGroup/devices.vue | 30 ++++++++++--------- 2 files changed, 23 insertions(+), 17 deletions(-) diff --git a/frontend/src/pages/application/DeviceGroup/Settings/index.vue b/frontend/src/pages/application/DeviceGroup/Settings/index.vue index 376ca4654d..bdf143b19e 100644 --- a/frontend/src/pages/application/DeviceGroup/Settings/index.vue +++ b/frontend/src/pages/application/DeviceGroup/Settings/index.vue @@ -1,4 +1,7 @@