X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fnavigation%2Fsidenav-list%2Fsidenav-list.component.ts;h=f8b23d0cc4217c4138dcb655356a458cbcb3427f;hb=refs%2Fchanges%2F72%2F2272%2F8;hp=ac8256acd9e8f414d0e9472e456e620c698dd62a;hpb=e2cbc4d0304646febf7e2cbe0dccdf9840189222;p=portal%2Fric-dashboard.git diff --git a/webapp-frontend/src/app/navigation/sidenav-list/sidenav-list.component.ts b/webapp-frontend/src/app/navigation/sidenav-list/sidenav-list.component.ts index ac8256ac..f8b23d0c 100644 --- a/webapp-frontend/src/app/navigation/sidenav-list/sidenav-list.component.ts +++ b/webapp-frontend/src/app/navigation/sidenav-list/sidenav-list.component.ts @@ -1,8 +1,8 @@ /*- * ========================LICENSE_START================================= - * ORAN-OSC + * O-RAN-SC * %% - * Copyright (C) 2019 AT&T Intellectual Property and Nokia + * Copyright (C) 2019 AT&T Intellectual Property * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,18 +18,23 @@ * ========================LICENSE_END=================================== */ import { Component, OnInit, Output, EventEmitter } from '@angular/core'; +import { UiService } from '../../services/ui/ui.service'; @Component({ - selector: 'app-sidenav-list', + selector: 'rd-sidenav-list', templateUrl: './sidenav-list.component.html', - styleUrls: ['./sidenav-list.component.css'] + styleUrls: ['./sidenav-list.component.scss'] }) export class SidenavListComponent implements OnInit { - @Output() sidenavClose = new EventEmitter(); + darkMode: boolean; + @Output() sidenavClose: EventEmitter = new EventEmitter(); - constructor() { } + constructor(public ui: UiService) { } ngOnInit() { + this.ui.darkModeState.subscribe((isDark) => { + this.darkMode = isDark; + }); } public onSidenavClose = () => {