share link drop down yes/no on ui

This commit is contained in:
keshav898966
2026-06-26 11:15:10 +05:30
parent f3df626483
commit bc980d2059
4 changed files with 25 additions and 10 deletions
@@ -155,12 +155,13 @@
<input matInput [value]="productTemplate.introducerRequired ? 'Yes' : 'No'" readonly /> <input matInput [value]="productTemplate.introducerRequired ? 'Yes' : 'No'" readonly />
</mat-form-field> </mat-form-field>
<div class="sad-field sad-info-row"> <mat-form-field appearance="outline" class="sad-field">
<span class="sad-info-label">Share Linking Enabled</span> <mat-label>Share Linking Enabled</mat-label>
<span class="sad-badge" [class.sad-badge--yes]="productTemplate.shareLinkingEnabled"> <mat-select [(ngModel)]="shareLinkingEnabled" [ngModelOptions]="{ standalone: true }">
{{ productTemplate.shareLinkingEnabled ? 'Yes' : 'No' }} <mat-option [value]="true">Yes</mat-option>
</span> <mat-option [value]="false">No</mat-option>
</div> </mat-select>
</mat-form-field>
</div> </div>
</div> </div>
@@ -67,6 +67,8 @@ export class CurrentAccountDetailsStepComponent implements OnInit {
introducerCif: string | null = null; introducerCif: string | null = null;
private isEditMode = false; private isEditMode = false;
shareLinkingEnabled = false;
// ── Non-Individual (existing) ────────────────────────────────────────── // ── Non-Individual (existing) ──────────────────────────────────────────
isNonIndividualClient = false; isNonIndividualClient = false;
relatedClients: Array<{ relatedClients: Array<{
@@ -280,6 +282,7 @@ export class CurrentAccountDetailsStepComponent implements OnInit {
this.currentAccountProductTemplate.emit(response); this.currentAccountProductTemplate.emit(response);
this.fieldOfficerData = response.fieldOfficerOptions; this.fieldOfficerData = response.fieldOfficerOptions;
this.currentAccountProductSelected = true; this.currentAccountProductSelected = true;
this.shareLinkingEnabled = !!response.shareLinkingEnabled;
this.currentAccountDetailsForm.patchValue({ this.currentAccountDetailsForm.patchValue({
balanceSwapOption: !!response.balanceSwapOption, balanceSwapOption: !!response.balanceSwapOption,
msme: !!response.msme, msme: !!response.msme,
@@ -382,6 +385,7 @@ export class CurrentAccountDetailsStepComponent implements OnInit {
this.introducerName = ea.introducerName ?? null; this.introducerName = ea.introducerName ?? null;
this.introducerCif = ea.introducerCifNumber ?? null; this.introducerCif = ea.introducerCifNumber ?? null;
} }
this.shareLinkingEnabled = ea.shareLinkingEnabled !== undefined ? !!ea.shareLinkingEnabled : !!ea.isLinkingEnable;
this.currentAccountDetailsForm.patchValue({ this.currentAccountDetailsForm.patchValue({
balanceSwapOption: !!ea.balanceSwapOption, balanceSwapOption: !!ea.balanceSwapOption,
msme: !!ea.msme, msme: !!ea.msme,
@@ -664,6 +668,7 @@ export class CurrentAccountDetailsStepComponent implements OnInit {
get currentAccountDetails() { get currentAccountDetails() {
const value = this.currentAccountDetailsForm.getRawValue(); const value = this.currentAccountDetailsForm.getRawValue();
value.shareLinkingEnabled = this.shareLinkingEnabled;
if (this.introducerId) { if (this.introducerId) {
value.introducerId = this.introducerId; value.introducerId = this.introducerId;
value.introducerName = this.introducerName; value.introducerName = this.introducerName;
@@ -131,9 +131,18 @@
<span class="preview-label">Share Linking Enabled</span> <span class="preview-label">Share Linking Enabled</span>
<span <span
class="preview-value preview-badge" class="preview-value preview-badge"
[class.preview-badge--yes]="currentAccountProductTemplate?.shareLinkingEnabled" [class.preview-badge--yes]="
currentAccount?.shareLinkingEnabled !== undefined
? currentAccount.shareLinkingEnabled
: currentAccountProductTemplate?.shareLinkingEnabled
"
> >
{{ currentAccountProductTemplate?.shareLinkingEnabled | yesNo }} {{
(currentAccount?.shareLinkingEnabled !== undefined
? currentAccount.shareLinkingEnabled
: currentAccountProductTemplate?.shareLinkingEnabled
) | yesNo
}}
</span> </span>
</div> </div>
</div> </div>
+2 -2
View File
@@ -9,8 +9,8 @@
/* tslint:disable */ /* tslint:disable */
export default { export default {
'mifos_x': { 'mifos_x': {
'version': '260619', 'version': '260626',
'hash': '822fa4c6' 'hash': 'f3df6264'
}, },
'allow_switching_backend_instance': true 'allow_switching_backend_instance': true
}; };