fix(savings): remove duplicate Submit button in Modify Savings Account form
Added hideButtons @Input to SavingsAccountPreviewStepComponent and passed hideButtons=true from the edit form — prevents the preview step's own Cancel/Submit row from rendering alongside the tab action bar's buttons. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
260fabaa48
commit
5f7de01ba9
@@ -120,6 +120,7 @@
|
|||||||
[savingsAccount]="savingsAccount"
|
[savingsAccount]="savingsAccount"
|
||||||
[savingsAccountDigital]="savingsAccountDigital"
|
[savingsAccountDigital]="savingsAccountDigital"
|
||||||
[savingsAccountNominees]="savingsAccountCurrencyStep?.nominees ?? []"
|
[savingsAccountNominees]="savingsAccountCurrencyStep?.nominees ?? []"
|
||||||
|
[hideButtons]="true"
|
||||||
(submitEvent)="submit()"
|
(submitEvent)="submit()"
|
||||||
>
|
>
|
||||||
</mifosx-savings-account-preview-step>
|
</mifosx-savings-account-preview-step>
|
||||||
|
|||||||
+11
-9
@@ -581,12 +581,14 @@
|
|||||||
mat-stepper. Re-introducing matStepperPrevious here would require a
|
mat-stepper. Re-introducing matStepperPrevious here would require a
|
||||||
CdkStepper ancestor and would crash the view on init.
|
CdkStepper ancestor and would crash the view on init.
|
||||||
-->
|
-->
|
||||||
<div class="preview-submit-row">
|
@if (!hideButtons) {
|
||||||
<button mat-stroked-button [routerLink]="['../..']">
|
<div class="preview-submit-row">
|
||||||
{{ 'labels.buttons.Cancel' | translate }}
|
<button mat-stroked-button [routerLink]="['../..']">
|
||||||
</button>
|
{{ 'labels.buttons.Cancel' | translate }}
|
||||||
<button mat-raised-button color="primary" class="preview-submit-row__primary" (click)="submitEvent.emit()">
|
</button>
|
||||||
<fa-icon icon="check" class="m-r-10"></fa-icon>
|
<button mat-raised-button color="primary" class="preview-submit-row__primary" (click)="submitEvent.emit()">
|
||||||
{{ 'labels.buttons.Submit' | translate }}
|
<fa-icon icon="check" class="m-r-10"></fa-icon>
|
||||||
</button>
|
{{ 'labels.buttons.Submit' | translate }}
|
||||||
</div>
|
</button>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|||||||
+2
@@ -92,6 +92,8 @@ export class SavingsAccountPreviewStepComponent implements OnChanges {
|
|||||||
@Input() savingsAccountNominees: any[] = [];
|
@Input() savingsAccountNominees: any[] = [];
|
||||||
/** active Client Members in case of GSIM Account */
|
/** active Client Members in case of GSIM Account */
|
||||||
@Input() activeClientMembers?: any;
|
@Input() activeClientMembers?: any;
|
||||||
|
/** Hide internal Cancel/Submit buttons when parent provides its own action bar */
|
||||||
|
@Input() hideButtons = false;
|
||||||
|
|
||||||
/** Table Data Source */
|
/** Table Data Source */
|
||||||
dataSource: any;
|
dataSource: any;
|
||||||
|
|||||||
Reference in New Issue
Block a user