fix for no menu actions on the TV requests page when clicking on options

pull/4210/head
twanariens 4 years ago
parent 166e2dc34f
commit f0d8add4f4

@ -27,6 +27,7 @@ export class TvGridComponent implements OnInit, AfterViewInit {
public currentFilter: RequestFilterType = RequestFilterType.All; public currentFilter: RequestFilterType = RequestFilterType.All;
public RequestFilter = RequestFilterType; public RequestFilter = RequestFilterType;
public manageOwnRequests: boolean;
private storageKey = "Tv_DefaultRequestListSort"; private storageKey = "Tv_DefaultRequestListSort";
private storageKeyOrder = "Tv_DefaultRequestListSortOrder"; private storageKeyOrder = "Tv_DefaultRequestListSortOrder";
@ -107,7 +108,8 @@ export class TvGridComponent implements OnInit, AfterViewInit {
this.ref.detectChanges(); this.ref.detectChanges();
}; };
this.onOpenOptions.emit({request: request, filter: filter, onChange}); const data = { request: request, filter: filter, onChange: onChange, manageOwnRequests: this.manageOwnRequests, isAdmin: this.isAdmin };
this.onOpenOptions.emit(data);
} }
private loadData(): Observable<IRequestsViewModel<IChildRequests>> { private loadData(): Observable<IRequestsViewModel<IChildRequests>> {

Loading…
Cancel
Save