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=6ebd79bd9703cb59163e96f1acb5d8e5024c3299;hpb=a4c7cdd075d372de0ab352abc46359d88a570d90;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 6ebd79bd..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 @@ -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,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 = () => {