Skip to content

Commit

Permalink
what's new: notification center icon and menu basic view (#4716)
Browse files Browse the repository at this point in the history
  • Loading branch information
japie1235813 authored Mar 4, 2021
1 parent 3815616 commit 24719bb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tensorboard/webapp/notification_center/_views/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ tf_ng_module(
"notification_center_component.ng.html",
],
deps = [
"//tensorboard/webapp/angular:expect_angular_material_button",
"//tensorboard/webapp/angular:expect_angular_material_icon",
"//tensorboard/webapp/angular:expect_angular_material_menu",
"//tensorboard/webapp/notification_center/_redux:types",
"@npm//@angular/core",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<button mat-icon-button [matMenuTriggerFor]="menu">
<mat-icon svgIcon="notifications_none_24px"></mat-icon>
</button>

<mat-menu #menu="matMenu">
<div mat-menu-item>notification 1</div>
</mat-menu>
4 changes: 4 additions & 0 deletions tensorboard/webapp/notification_center/_views/views_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
import {NgModule} from '@angular/core';
import {MatIconModule} from '@angular/material/icon';
import {MatButtonModule} from '@angular/material/button';
import {MatMenuModule} from '@angular/material/menu';

import {NotificationCenterComponent} from './notification_center_component';
import {NotificationCenterContainer} from './notification_center_container';
Expand All @@ -23,5 +26,6 @@ import {NotificationCenterContainer} from './notification_center_container';
@NgModule({
declarations: [NotificationCenterContainer, NotificationCenterComponent],
exports: [NotificationCenterContainer],
imports: [MatButtonModule, MatIconModule, MatMenuModule],
})
export class NotificationCenterViewModule {}

0 comments on commit 24719bb

Please sign in to comment.