X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=webapp-frontend%2Fsrc%2Fapp%2Fservices%2Fui%2Fnotification.service.ts;h=465a3dd1bce6de08a230115f02281151651e25fd;hb=82e05a5f48ff4e3f19e878ac22ee6b79f84c76fe;hp=09baa38cc8dc5ed73944707ba0f94ef78668e7b9;hpb=76bf355447e6bb041dd52edceeffeff272acae38;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/src/app/services/ui/notification.service.ts b/webapp-frontend/src/app/services/ui/notification.service.ts index 09baa38..465a3dd 100644 --- a/webapp-frontend/src/app/services/ui/notification.service.ts +++ b/webapp-frontend/src/app/services/ui/notification.service.ts @@ -18,41 +18,30 @@ * ========================LICENSE_END=================================== */ -import { Injectable } from '@angular/core'; -import { ToastrService } from 'ngx-toastr'; +import { Injectable } from "@angular/core"; +import { ToastrService } from "ngx-toastr"; @Injectable({ - providedIn: 'root' + providedIn: "root", }) export class NotificationService { - - constructor(public toastr: ToastrService) { } + constructor(public toastr: ToastrService) {} successConfig = { timeOut: 10000, - closeButton: true - }; - - warningConfig = { - disableTimeOut: true, - closeButton: true + closeButton: true, }; errorConfig = { disableTimeOut: true, - closeButton: true + closeButton: true, }; success(msg: string) { - this.toastr.success(msg, '', this.successConfig); - } - - warn(msg: string) { - this.toastr.warning(msg, '', this.warningConfig); + this.toastr.success(msg, "", this.successConfig); } error(msg: string) { - this.toastr.error(msg, '', this.errorConfig); + this.toastr.error(msg, "", this.errorConfig); } - }