PDF Polish (#2837)

Co-authored-by: William Brockhus <pickeringw@gmail.com>
This commit is contained in:
Joe Milazzo 2024-04-09 17:57:28 -05:00 committed by GitHub
parent 6ed634f5d1
commit 752fda0e93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 103 additions and 106 deletions

View file

@ -22,7 +22,7 @@ import {catchError} from "rxjs";
styleUrls: ['./license.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [NgIf, NgbTooltip, LoadingComponent, NgbCollapse, ReactiveFormsModule, TranslocoDirective]
imports: [NgbTooltip, LoadingComponent, NgbCollapse, ReactiveFormsModule, TranslocoDirective]
})
export class LicenseComponent implements OnInit {
@ -36,7 +36,7 @@ export class LicenseComponent implements OnInit {
hasValidLicense: boolean = false;
hasLicense: boolean = false;
isChecking: boolean = false;
isChecking: boolean = true;
isSaving: boolean = false;
buyLink = environment.buyLink;
@ -53,8 +53,11 @@ export class LicenseComponent implements OnInit {
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();
});
}