From: Ankit <51ankitkp@gmail.com> Date: Wed, 12 Mar 2025 17:45:55 +0000 (+0530) Subject: mgr/dashboard:fixed issue with notification icon X-Git-Tag: testing/wip-pdonnell-testing-20250324.181635-debug~33^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f59066195fdaa807b5b5c1f4d3a652b9c519ed93;p=ceph-ci.git mgr/dashboard:fixed issue with notification icon Fixes:https://tracker.ceph.com/issues/70253 Signed-off-by: Ankit Kumar <51ankitkp@gmail.com> --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.html b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.html index a544bbcdb43..9e40d53b4fc 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.html @@ -33,8 +33,9 @@ -
- +
+
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.ts index 55c9ab7e88d..1b9c0b73c1b 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.ts @@ -14,6 +14,7 @@ import { FeatureTogglesMap$, FeatureTogglesService } from '~/app/shared/services/feature-toggles.service'; +import { NotificationService } from '~/app/shared/services/notification.service'; import { PrometheusAlertService } from '~/app/shared/services/prometheus-alert.service'; import { SummaryService } from '~/app/shared/services/summary.service'; @@ -49,6 +50,7 @@ export class NavigationComponent implements OnInit, OnDestroy { currentClusterName: string; constructor( + public notificationService: NotificationService, private authStorageService: AuthStorageService, private multiClusterService: MultiClusterService, private router: Router, @@ -189,7 +191,9 @@ export class NavigationComponent implements OnInit, OnDestroy { } ); } - + toggleSidebar() { + this.notificationService.toggleSidebar(); + } trackByFn(item: any) { return item; } diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notifications/notifications.component.html b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notifications/notifications.component.html index f120234b9cd..f106e6647e3 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notifications/notifications.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notifications/notifications.component.html @@ -1,7 +1,7 @@ + > diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notifications/notifications.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notifications/notifications.component.ts index 89c6c403794..b6e5fd41ab4 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notifications/notifications.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notifications/notifications.component.ts @@ -40,8 +40,4 @@ export class NotificationsComponent implements OnInit, OnDestroy { ngOnDestroy(): void { this.subs.unsubscribe(); } - - toggleSidebar() { - this.notificationService.toggleSidebar(); - } }