|
|
@ -26,6 +26,7 @@ import { |
|
|
OnInit, |
|
|
OnInit, |
|
|
Output, |
|
|
Output, |
|
|
ViewChild, |
|
|
ViewChild, |
|
|
|
|
|
computed, |
|
|
inject, |
|
|
inject, |
|
|
input |
|
|
input |
|
|
} from '@angular/core'; |
|
|
} from '@angular/core'; |
|
|
@ -138,13 +139,16 @@ export class GfActivitiesTableComponent |
|
|
public hasDrafts = false; |
|
|
public hasDrafts = false; |
|
|
public hasErrors = false; |
|
|
public hasErrors = false; |
|
|
public isAfter = isAfter; |
|
|
public isAfter = isAfter; |
|
|
public isLoading = true; |
|
|
|
|
|
public isUUID = isUUID; |
|
|
public isUUID = isUUID; |
|
|
public routeQueryParams: Subscription; |
|
|
public routeQueryParams: Subscription; |
|
|
public selectedRows = new SelectionModel<Activity>(true, []); |
|
|
public selectedRows = new SelectionModel<Activity>(true, []); |
|
|
|
|
|
|
|
|
public readonly dataSource = input.required<MatTableDataSource<Activity>>(); |
|
|
public readonly dataSource = input.required<MatTableDataSource<Activity>>(); |
|
|
|
|
|
|
|
|
|
|
|
public readonly isLoading = computed(() => { |
|
|
|
|
|
return !this.dataSource(); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
private readonly notificationService = inject(NotificationService); |
|
|
private readonly notificationService = inject(NotificationService); |
|
|
private readonly unsubscribeSubject = new Subject<void>(); |
|
|
private readonly unsubscribeSubject = new Subject<void>(); |
|
|
|
|
|
|
|
|
@ -220,10 +224,6 @@ export class GfActivitiesTableComponent |
|
|
return column !== 'nameWithSymbol'; |
|
|
return column !== 'nameWithSymbol'; |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (this.dataSource()) { |
|
|
|
|
|
this.isLoading = false; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public areAllRowsSelected() { |
|
|
public areAllRowsSelected() { |
|
|
|