* 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({
displayedColumns: string[] = ['name', 'version', 'status', 'action'];
dataSource: CatalogDataSource;
+ @ViewChild(MatSort) sort: MatSort;
constructor(
private xappMgrSvc: XappMgrService,
private notification: NotificationService) { }
ngOnInit() {
- this.dataSource = new CatalogDataSource(this.xappMgrSvc);
+ this.dataSource = new CatalogDataSource(this.xappMgrSvc, this.sort );
this.dataSource.loadTable();
}