X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=dashboard%2Fwebapp-frontend%2Fsrc%2Fapp%2Fservices%2Fui%2Fconfirm-dialog.service.ts;h=184d64f190cbad6b3250abd60bd717447c246c84;hb=2535d83fed43ebb805f2612f40043eb6ceee2179;hp=297e67355a9dc2ddd57052590b5790519f64b9b5;hpb=3b1e23945b9426ad7aaacfc3794e15286d82c816;p=nonrtric.git diff --git a/dashboard/webapp-frontend/src/app/services/ui/confirm-dialog.service.ts b/dashboard/webapp-frontend/src/app/services/ui/confirm-dialog.service.ts index 297e6735..184d64f1 100644 --- a/dashboard/webapp-frontend/src/app/services/ui/confirm-dialog.service.ts +++ b/dashboard/webapp-frontend/src/app/services/ui/confirm-dialog.service.ts @@ -7,9 +7,9 @@ * 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. @@ -26,22 +26,22 @@ import { UiService } from './ui.service'; @Injectable({ providedIn: 'root' }) -export class ConfirmDialogService { +export class ConfirmDialogService { darkMode: boolean; - panelClass: string = ""; + panelClass = ''; constructor(private dialog: MatDialog, - public ui: UiService) { } + private ui: UiService) { } openConfirmDialog(msg: string) { this.ui.darkModeState.subscribe((isDark) => { this.darkMode = isDark; }); if (this.darkMode) { - this.panelClass = "dark-theme"; + this.panelClass = 'dark-theme'; } else { - this.panelClass = ""; + this.panelClass = ''; } return this.dialog.open(ConfirmDialogComponent, { panelClass: this.panelClass,