diff --git a/ui-ngx/src/app/modules/home/components/router-tabs.component.html b/ui-ngx/src/app/modules/home/components/router-tabs.component.html
index 64992ad6ec..5966eeb3b8 100644
--- a/ui-ngx/src/app/modules/home/components/router-tabs.component.html
+++ b/ui-ngx/src/app/modules/home/components/router-tabs.component.html
@@ -22,9 +22,9 @@
#rla="routerLinkActive"
mat-tab-link
[active]="rla.isActive">
- @if (tab.outlinedIcon !== null) {
+ @if (tab.outlinedIcon) {
{{tab.outlinedIcon}}
- } @else if (tab.icon !== null) {
+ } @else if (tab.icon) {
{{tab.icon}}
}
{{ tab.customTranslate ? (tab.name | customTranslate) : (tab.name | translate) }}
diff --git a/ui-ngx/src/app/modules/home/components/router-tabs.component.ts b/ui-ngx/src/app/modules/home/components/router-tabs.component.ts
index f535ae0801..4057b488c8 100644
--- a/ui-ngx/src/app/modules/home/components/router-tabs.component.ts
+++ b/ui-ngx/src/app/modules/home/components/router-tabs.component.ts
@@ -9,7 +9,7 @@ import { ActivatedRoute, NavigationEnd, Router } from '@angular/router';
import { MenuService } from '@core/services/menu.service';
import { distinctUntilChanged, filter, map, mergeMap, startWith, take } from 'rxjs/operators';
import { merge, Observable } from 'rxjs';
-import { MenuSection } from '@core/services/menu.models';
+import { MenuSection, menuSectionMap } from '@core/services/menu.models';
import { ActiveComponentService } from '@core/services/active-component.service';
import { TbAnchorComponent } from '@shared/components/tb-anchor.component';
import { getCurrentAuthUser } from '@core/auth/auth.selectors';
@@ -130,13 +130,18 @@ export class RouterTabsComponent extends PageComponent implements OnInit {
}
});
if (children.length) {
- return children.map(tab => ({
- id: tab.component?.name ?? tab.path,
- type: 'link',
- name: tab.data?.breadcrumb?.label ?? '',
- icon: tab.data?.breadcrumb?.icon ?? '',
- path: `${sectionPath}/${tab.path}`
- }));
+ return children.map(tab => {
+ const breadcrumb = tab.data?.breadcrumb;
+ const section = breadcrumb?.menuId ? menuSectionMap.get(breadcrumb.menuId) : null;
+ return {
+ id: tab.component?.name ?? tab.path,
+ type: 'link',
+ name: section?.name ?? breadcrumb?.label ?? '',
+ icon: section?.icon ?? breadcrumb?.icon ?? '',
+ outlinedIcon: section?.outlinedIcon ?? breadcrumb?.icon ?? '',
+ path: `${sectionPath}/${tab.path}`
+ };
+ });
}
return [];
}
diff --git a/ui-ngx/src/app/modules/home/pages/notification/settings/notification-settings-routing.modules.ts b/ui-ngx/src/app/modules/home/pages/notification/settings/notification-settings-routing.modules.ts
index 6e2012dd6e..6b63ef0937 100644
--- a/ui-ngx/src/app/modules/home/pages/notification/settings/notification-settings-routing.modules.ts
+++ b/ui-ngx/src/app/modules/home/pages/notification/settings/notification-settings-routing.modules.ts
@@ -3,7 +3,7 @@
import { Routes } from '@angular/router';
import { ConfirmOnExitGuard } from '@core/guards/confirm-on-exit.guard';
import { Authority } from '@shared/models/authority.enum';
-import { inject, NgModule } from '@angular/core';
+import { inject } from '@angular/core';
import { NotificationSettingsComponent } from '@home/pages/notification/settings/notification-settings.component';
import { NotificationService } from '@core/http/notification.service';
@@ -17,7 +17,7 @@ export const notificationUserSettingsRoutes: Routes = [
title: 'account.notification-settings',
breadcrumb: {
label: 'account.notification-settings',
- icon: 'settings'
+ icon: 'mdi:cog-outline'
}
},
resolve: {
diff --git a/ui-ngx/src/app/modules/home/pages/profile/profile-routing.module.ts b/ui-ngx/src/app/modules/home/pages/profile/profile-routing.module.ts
index 53899f786b..58aee3a493 100644
--- a/ui-ngx/src/app/modules/home/pages/profile/profile-routing.module.ts
+++ b/ui-ngx/src/app/modules/home/pages/profile/profile-routing.module.ts
@@ -48,7 +48,7 @@ export const profileRoutes: Routes = [
title: 'profile.profile',
breadcrumb: {
label: 'profile.profile',
- icon: 'account_circle'
+ icon: 'mdi:account-circle-outline'
}
},
resolve: {
diff --git a/ui-ngx/src/app/modules/home/pages/security/security-routing.module.ts b/ui-ngx/src/app/modules/home/pages/security/security-routing.module.ts
index 6015650807..7d85bd8693 100644
--- a/ui-ngx/src/app/modules/home/pages/security/security-routing.module.ts
+++ b/ui-ngx/src/app/modules/home/pages/security/security-routing.module.ts
@@ -49,7 +49,7 @@ export const securityRoutes: Routes = [
title: 'security.security',
breadcrumb: {
label: 'security.security',
- icon: 'lock'
+ icon: 'mdi:lock-outline'
}
},
resolve: {