X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=webapp-frontend%2Fsrc%2Fapp%2Fcatalog%2Fcatalog.component.ts;h=04b8380518a36c160a9f343a2ebd3794c5e50395;hb=19570d54903b181469ee2806043d562dadc1d804;hp=96e040e25fafe81203588d24ea41918b9e4ceb0f;hpb=c40f0d5d74bfa57a8ee28ba818b7fcd67633177d;p=portal%2Fric-dashboard.git diff --git a/webapp-frontend/src/app/catalog/catalog.component.ts b/webapp-frontend/src/app/catalog/catalog.component.ts index 96e040e2..04b83805 100644 --- a/webapp-frontend/src/app/catalog/catalog.component.ts +++ b/webapp-frontend/src/app/catalog/catalog.component.ts @@ -17,11 +17,12 @@ * limitations under the License. * ========================LICENSE_END=================================== */ -import { Component, OnInit} from '@angular/core'; -import { XappMgrService } from '../services/xapp-mgr/xapp-mgr.service'; -import { ConfirmDialogService } from './../services/ui/confirm-dialog.service' -import { NotificationService } from './../services/ui/notification.service' +import { Component, OnInit, ViewChild } from '@angular/core'; +import { MatSort } from '@angular/material/sort'; import { ErrorDialogService } from '../services/ui/error-dialog.service'; +import { XappMgrService } from '../services/xapp-mgr/xapp-mgr.service'; +import { ConfirmDialogService } from './../services/ui/confirm-dialog.service'; +import { NotificationService } from './../services/ui/notification.service'; import { CatalogDataSource } from './catalog.datasource'; @Component({ @@ -33,6 +34,7 @@ export class CatalogComponent implements OnInit{ displayedColumns: string[] = ['name', 'version', 'status', 'action']; dataSource: CatalogDataSource; + @ViewChild(MatSort) sort: MatSort; constructor( private xappMgrSvc: XappMgrService, @@ -41,7 +43,7 @@ export class CatalogComponent implements OnInit{ private notification: NotificationService) { } ngOnInit() { - this.dataSource = new CatalogDataSource(this.xappMgrSvc); + this.dataSource = new CatalogDataSource(this.xappMgrSvc, this.sort ); this.dataSource.loadTable(); }