mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Fixed #4208
This commit is contained in:
parent
f3392409f7
commit
7dd0812c95
2 changed files with 3 additions and 2 deletions
|
@ -137,7 +137,8 @@ export class MoviesGridComponent implements OnInit, AfterViewInit {
|
|||
this.ref.detectChanges();
|
||||
};
|
||||
|
||||
this.onOpenOptions.emit({ request: request, filter: filter, onChange: onChange, manageOwnRequests: this.manageOwnRequests, isAdmin: this.isAdmin });
|
||||
const data = { request: request, filter: filter, onChange: onChange, manageOwnRequests: this.manageOwnRequests, isAdmin: this.isAdmin };
|
||||
this.onOpenOptions.emit(data);
|
||||
}
|
||||
|
||||
public switchFilter(type: RequestFilterType) {
|
||||
|
|
|
@ -14,7 +14,7 @@ export class RequestsListComponent {
|
|||
constructor(private bottomSheet: MatBottomSheet) { }
|
||||
|
||||
public onOpenOptions(event: { request: any, filter: any, onChange: any, manageOwnRequests: boolean, isAdmin: boolean }) {
|
||||
const ref = this.bottomSheet.open(RequestOptionsComponent, { data: { id: event.request.id, type: event.request.requestType, canApprove: event.request.canApprove } });
|
||||
const ref = this.bottomSheet.open(RequestOptionsComponent, { data: { id: event.request.id, type: event.request.requestType, canApprove: event.request.canApprove, manageOwnRequests: event.manageOwnRequests, isAdmin: event.isAdmin } });
|
||||
|
||||
ref.afterDismissed().subscribe((result) => {
|
||||
if(!result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue