fix: Prevent GLIM and GSIM without members (#2340)
Makes sure GLIM and GSIM application menu item doesn't appear without members. (This has already been in place for JLG.) Make sure GSIM can't be created without members. Fixes: WEB-62
This commit is contained in:
@@ -94,7 +94,11 @@ export class CreateGsimAccountComponent {
|
||||
* Checks validity of overall savings account form.
|
||||
*/
|
||||
get savingsAccountFormValid() {
|
||||
return this.savingsAccountDetailsForm.valid && this.savingsAccountTermsForm.valid;
|
||||
return (
|
||||
this.savingsAccountDetailsForm.valid &&
|
||||
this.savingsAccountTermsForm.valid &&
|
||||
this.activeClientMembers.filter((m: any) => m.selected).length > 0
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user