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=c0f05afcadd00c399d3a5eb5ddb254a509fc7f84;hb=59f2bcb96fad2d6faee48b4ca65da36249ec5297;hp=9548440fdb30dfe4beedc88600e48fd6ef5735c9;hpb=226fd436a085f717d4cbf81bf1719bdaf1468414;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 9548440f..c0f05afc 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 @@ -2,14 +2,14 @@ * ========================LICENSE_START================================= * 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. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -18,6 +18,7 @@ * ========================LICENSE_END=================================== */ import { Component, OnInit, Output, EventEmitter } from '@angular/core'; +import { UiService } from '../../services/ui/ui.service'; @Component({ selector: 'rd-sidenav-list', @@ -25,11 +26,16 @@ import { Component, OnInit, Output, EventEmitter } from '@angular/core'; styleUrls: ['./sidenav-list.component.scss'] }) export class SidenavListComponent implements OnInit { + darkMode: boolean; @Output() sidenavClose = new EventEmitter(); - constructor() { } + constructor(public ui: UiService) { } - ngOnInit() { } + ngOnInit() { + this.ui.darkModeState.subscribe((isDark) => { + this.darkMode = isDark; + }); + } public onSidenavClose = () => { this.sidenavClose.emit();