Polish for Release (#2841)

This commit is contained in:
Joe Milazzo 2024-04-10 16:51:40 -05:00 committed by GitHub
parent a76de06087
commit e6e228c3d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 46 additions and 36 deletions

View file

@ -49,16 +49,21 @@ export class LicenseComponent implements OnInit {
this.formGroup.addControl('licenseKey', new FormControl('', [Validators.required]));
this.formGroup.addControl('email', new FormControl('', [Validators.required]));
this.formGroup.addControl('discordId', new FormControl('', [Validators.pattern(/\d+/)]));
this.isChecking = true;
this.cdRef.markForCheck();
this.accountService.hasAnyLicense().subscribe(res => {
this.hasLicense = res;
this.cdRef.markForCheck();
});
this.isChecking = true;
this.cdRef.markForCheck();
this.accountService.hasValidLicense().subscribe(res => {
this.hasValidLicense = res;
this.isChecking = false;
this.cdRef.markForCheck();
if (this.hasLicense) {
this.accountService.hasValidLicense().subscribe(res => {
this.hasValidLicense = res;
this.isChecking = false;
this.cdRef.markForCheck();
});
}
});
}