From 38f2e8a9d9d24806b9731c87edcc6b088b89464b Mon Sep 17 00:00:00 2001 From: Ilia Orlov <66363651+illfixit@users.noreply.github.com> Date: Thu, 21 Nov 2024 16:58:04 +0100 Subject: [PATCH] feat: rearrange sidebar (#886) --- CHANGELOG.md | 2 ++ src/app/core/services/nav-items-builder.ts | 42 +++++++++++----------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c54c17fe..7d6c4eee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,8 @@ the detailed section referring to by linking pull requests or issues. - Fix wrong placeholders for On Request data offer type ([#878](https://github.com/sovity/edc-ui/issues/878)) +- Rearrange Sidebar Navigation Groups + ([#836](https://github.com/sovity/edc-ui/issues/836)) ### Deployment Migration Notes diff --git a/src/app/core/services/nav-items-builder.ts b/src/app/core/services/nav-items-builder.ts index 2dec50ed..f25256e3 100644 --- a/src/app/core/services/nav-items-builder.ts +++ b/src/app/core/services/nav-items-builder.ts @@ -12,10 +12,27 @@ import {NavItemGroup} from './models/nav-item-group'; export class NavItemsBuilder { private navItemGroups: NavItemGroup[] = [ { - items: [{path: 'dashboard', icon: 'data_usage', title: 'Dashboard'}], + items: [ + {path: 'dashboard', icon: 'data_usage', title: 'Dashboard'}, + { + path: 'catalog-browser', + icon: 'sim_card', + title: 'catalog_browser_page.title', + }, + { + path: 'contracts', + icon: 'assignment_turned_in', + title: 'contract_agreement_page.title', + }, + { + path: 'transfer-history', + icon: 'assignment', + title: 'transfer_history_page.title', + }, + ], }, { - title: 'Providing', + title: 'Provide', items: [ { path: 'create-asset', @@ -35,26 +52,7 @@ export class NavItemsBuilder { }, ], }, - { - title: 'Consuming', - items: [ - { - path: 'catalog-browser', - icon: 'sim_card', - title: 'catalog_browser_page.title', - }, - { - path: 'contracts', - icon: 'assignment_turned_in', - title: 'contract_agreement_page.title', - }, - { - path: 'transfer-history', - icon: 'assignment', - title: 'transfer_history_page.title', - }, - ], - }, + { items: [ {