WEB-216: Disable delete group action for non-pending groups (#3058)

Co-authored-by: Parth Sharma <parthsharma@Parths-MacBook-Air.local>
This commit is contained in:
parth-sharma-10
2026-01-28 12:28:31 -06:00
committed by GitHub
co-authored by Parth Sharma
parent 30a143fced
commit 544990cfd0
2 changed files with 17 additions and 1 deletions
@@ -198,7 +198,13 @@
<button mat-menu-item *mifosxHasPermission="'CLOSE_GROUP'" (click)="doAction('Close')">
{{ 'labels.buttons.Close' | translate }}
</button>
<button mat-menu-item *mifosxHasPermission="'DELETE_GROUP'" (click)="doAction('Delete')">
<button
mat-menu-item
*mifosxHasPermission="'DELETE_GROUP'"
[disabled]="!canDeleteGroup()"
matTooltip="Only pending groups can be deleted"
(click)="doAction('Delete')"
>
{{ 'labels.buttons.Delete' | translate }}
</button>
</mat-menu>