From: Tiago Melo Date: Tue, 27 Mar 2018 20:25:15 +0000 (+0100) Subject: mgr/dashboard: Add notification component X-Git-Tag: v13.1.0~331^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7c37d8a06be60b66b030b7ab616ca075269ab70e;p=ceph.git mgr/dashboard: Add notification component This component is used on the navigation bar and will show the user the 10 most recent notifications. Signed-off-by: Tiago Melo --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation.module.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation.module.ts index 823d4feea184..6c11b05fd07d 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation.module.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation.module.ts @@ -3,22 +3,25 @@ import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { BsDropdownModule } from 'ngx-bootstrap/dropdown'; +import { PopoverModule } from 'ngx-bootstrap/popover'; import { AppRoutingModule } from '../../app-routing.module'; import { SharedModule } from '../../shared/shared.module'; import { AuthModule } from '../auth/auth.module'; import { NavigationComponent } from './navigation/navigation.component'; +import { NotificationsComponent } from './notifications/notifications.component'; @NgModule({ imports: [ CommonModule, AuthModule, BsDropdownModule.forRoot(), + PopoverModule.forRoot(), AppRoutingModule, SharedModule, RouterModule ], - declarations: [NavigationComponent], + declarations: [NavigationComponent, NotificationsComponent], exports: [NavigationComponent] }) export class NavigationModule {} 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 cd7e8040c81b..a00e7cef6fe5 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 @@ -218,6 +218,10 @@