X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=webapp-frontend%2Fsrc%2Fapp%2Fapp-control%2Fapp-control.component.ts;h=b172152fb43c7092203a8b56fc910b54b45802ae;hb=226fd436a085f717d4cbf81bf1719bdaf1468414;hp=f87b9b5bf002ec0dc9da4de88ce209b56d098154;hpb=baba2efde0ab32026b1d13941dcc9e9dc95dc640;p=portal%2Fric-dashboard.git diff --git a/webapp-frontend/src/app/app-control/app-control.component.ts b/webapp-frontend/src/app/app-control/app-control.component.ts index f87b9b5b..b172152f 100644 --- a/webapp-frontend/src/app/app-control/app-control.component.ts +++ b/webapp-frontend/src/app/app-control/app-control.component.ts @@ -31,7 +31,7 @@ import { AppControlDataSource } from './app-control.datasource'; @Component({ selector: 'rd-app-control', templateUrl: './app-control.component.html', - styleUrls: ['./app-control.component.css'], + styleUrls: ['./app-control.component.scss'], animations: [AppControlAnimations.messageTrigger] }) export class AppControlComponent implements OnInit { @@ -45,10 +45,10 @@ export class AppControlComponent implements OnInit { private router: Router, private confirmDialogService: ConfirmDialogService, private errorDialogService: ErrorDialogService, - private notification: NotificationService) { } + private notificationService: NotificationService) { } ngOnInit() { - this.dataSource = new AppControlDataSource(this.appMgrSvc, this.sort); + this.dataSource = new AppControlDataSource(this.appMgrSvc, this.sort, this.notificationService); this.dataSource.loadTable(); } @@ -76,10 +76,10 @@ export class AppControlComponent implements OnInit { this.dataSource.loadTable(); switch (response.status) { case 200: - this.notification.success('xApp undeployed successfully!'); + this.notificationService.success('xApp undeployed successfully!'); break; default: - this.notification.warn('xApp undeploy failed.'); + this.notificationService.warn('xApp undeploy failed.'); } } );