X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fanr-xapp%2Fanr-xapp.component.ts;fp=webapp-frontend%2Fsrc%2Fapp%2Fanr-xapp%2Fanr-xapp.component.ts;h=c3f3cb833986285132a5c60552b1b2c942ec57b8;hb=b41447eecc802f21deba94b647f4d87040d41829;hp=d173505b90bd91bdf34de32edcef7a08a5258067;hpb=19570d54903b181469ee2806043d562dadc1d804;p=portal%2Fric-dashboard.git diff --git a/webapp-frontend/src/app/anr-xapp/anr-xapp.component.ts b/webapp-frontend/src/app/anr-xapp/anr-xapp.component.ts index d173505b..c3f3cb83 100644 --- a/webapp-frontend/src/app/anr-xapp/anr-xapp.component.ts +++ b/webapp-frontend/src/app/anr-xapp/anr-xapp.component.ts @@ -19,16 +19,17 @@ */ import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from '@angular/core'; +import { MatSort } from '@angular/material'; import { MatDialog } from '@angular/material/dialog'; import { fromEvent } from 'rxjs/observable/fromEvent'; import { debounceTime, distinctUntilChanged, tap } from 'rxjs/operators'; import { ANRNeighborCellRelation } from '../interfaces/anr-xapp.types'; -import { ANRXappDataSource } from './anr-xapp.datasource'; import { ANRXappService } from '../services/anr-xapp/anr-xapp.service'; -import { ANREditNCRDialogComponent } from './anr-edit-ncr-dialog.component'; -import { ConfirmDialogService } from './../services/ui/confirm-dialog.service'; import { ErrorDialogService } from '../services/ui/error-dialog.service'; +import { ConfirmDialogService } from './../services/ui/confirm-dialog.service'; import { NotificationService } from './../services/ui/notification.service'; +import { ANREditNCRDialogComponent } from './anr-edit-ncr-dialog.component'; +import { ANRXappDataSource } from './anr-xapp.datasource'; @Component({ selector: 'app-anr', @@ -43,6 +44,7 @@ export class AnrXappComponent implements AfterViewInit, OnInit { @ViewChild('ggNodeB') ggNodeB: ElementRef; @ViewChild('servingCellNrcgi') servingCellNrcgi: ElementRef; @ViewChild('neighborCellNrpci') neighborCellNrpci: ElementRef; + @ViewChild(MatSort) sort: MatSort; displayedColumns = ['cellIdentifierNrcgi', 'neighborCellNrpci', 'neighborCellNrcgi', 'flagNoHo', 'flagNoXn', 'flagNoRemove', 'action']; @@ -55,7 +57,7 @@ export class AnrXappComponent implements AfterViewInit, OnInit { private notificationService: NotificationService) { } ngOnInit() { - this.dataSource = new ANRXappDataSource(this.anrXappService); + this.dataSource = new ANRXappDataSource(this.anrXappService, this.sort); this.dataSource.loadTable(); // Empty string occurs first in the array of gNodeBIds this.anrXappService.getgNodeBs().subscribe((res: string[]) => this.gNodeBIds = res);