|
|
|
@ -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) {
|
|
|
|
|