Skip to content

Commit 3610148

Browse files
authored
Merge pull request #96 from sourcefuse/SAAS-73-A
fix(arc-saas): disable button after submit the tenant
2 parents efde01f + 7f0336e commit 3610148

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

projects/saas-ui/src/app/main/components/tenant-registration/tenant-registration.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,9 @@ <h5>{{ plan.name }}</h5>
367367
nbButton
368368
class="btn-danger"
369369
size="medium"
370-
[disabled]="!tenantRegForm.valid"
370+
status="danger"
371+
[disabled]="!tenantRegForm.valid || isSubmitting"
372+
371373
type="submit"
372374
>
373375
Submit

projects/saas-ui/src/app/main/components/tenant-registration/tenant-registration.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export class TenantRegistrationComponent {
3737
subscriptionPlans: AnyObject[];
3838
leadId = '';
3939
countryOptions = COUNTRIES;
40+
isSubmitting = false;
4041

4142
constructor(
4243
private route: ActivatedRoute,
@@ -121,6 +122,7 @@ export class TenantRegistrationComponent {
121122

122123
onSubmit() {
123124
if (this.tenantRegForm.valid) {
125+
this.isSubmitting = true;
124126
const userData = this.tenantRegForm.value;
125127
const user: TenantLeadWithPaymentMethod = {
126128
name: userData.name,

0 commit comments

Comments
 (0)