X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=dashboard%2Fwebapp-frontend%2Fsrc%2Fapp%2Fservices%2Fui%2Ferror-dialog.service.ts;h=bd5587d59efb12bd5477b8e3c3d543d7f90c5a8e;hb=a2ad32a98e7a3f32214d3ecd7ca9730e3602d11f;hp=a5a12f4528a18315dfa3baa405f66998c163dd2a;hpb=3b1e23945b9426ad7aaacfc3794e15286d82c816;p=nonrtric.git diff --git a/dashboard/webapp-frontend/src/app/services/ui/error-dialog.service.ts b/dashboard/webapp-frontend/src/app/services/ui/error-dialog.service.ts index a5a12f45..bd5587d5 100644 --- a/dashboard/webapp-frontend/src/app/services/ui/error-dialog.service.ts +++ b/dashboard/webapp-frontend/src/app/services/ui/error-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. @@ -27,20 +27,20 @@ import { UiService } from './ui.service'; export class ErrorDialogService { darkMode: boolean; - panelClass: string = ""; - public errorMessage: string = ''; + panelClass = ''; + public errorMessage = ''; constructor(private dialog: MatDialog, - public ui: UiService) { } + private ui: UiService) { } public displayError(error: 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(ErrorDialogComponent, { panelClass: this.panelClass,