feat: shares account actions (reject) (#892)

Fixes: #891
This commit is contained in:
Karan Takalkar
2020-06-23 16:38:15 +05:30
committed by GitHub
parent 5701bd1ed0
commit 8c032fc3ef
9 changed files with 160 additions and 5 deletions
@@ -41,8 +41,8 @@
<ng-container *ngIf="buttonConfig.options">
<button mat-raised-button [matMenuTriggerFor]="More">More</button>
<mat-menu #More="matMenu">
<span *ngFor="let button of buttonConfig.options">
<button mat-menu-item *mifosxHasPermission="button.taskPermissionName">{{button.name}}</button>
<span *ngFor="let option of buttonConfig.options">
<button mat-menu-item *mifosxHasPermission="option.taskPermissionName" (click)="doAction(option.name)">{{option.name}}</button>
</span>
</mat-menu>
</ng-container>
@@ -79,6 +79,9 @@ export class SharesAccountViewComponent implements OnInit {
case 'Approve':
this.router.navigate(['actions/Approve'], { relativeTo: this.route });
break;
case 'Reject':
this.router.navigate(['actions/Reject'], { relativeTo: this.route });
break;
}
}