Skip to content

Commit f785fc9

Browse files
ZhaoJiSenbaijiangjie
authored andcommitted
Fixed: Fix the TDZ issue
1 parent b65f9cb commit f785fc9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/elements/connect/connect-dialog/select-account/select-account.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class ElementSelectAccountComponent implements OnInit, OnDestroy {
3636
@ViewChild('password', { static: false }) passwordRef: ElementRef;
3737

3838
public hidePassword = true;
39-
public rememberAuthDisabled = !this._settingSvc.globalSetting.SECURITY_LUNA_REMEMBER_AUTH;
39+
public rememberAuthDisabled = null;
4040
usernameControl = new FormControl();
4141
localAuthItems: AuthInfo[];
4242
filteredOptions: AuthInfo[];
@@ -57,6 +57,7 @@ export class ElementSelectAccountComponent implements OnInit, OnDestroy {
5757
private _cdRef: ChangeDetectorRef
5858
) {
5959
this.usernamePlaceholder = this._i18n.instant('Username');
60+
this.rememberAuthDisabled = !this._settingSvc.globalSetting.SECURITY_LUNA_REMEMBER_AUTH;
6061
}
6162

6263
get noSecretAccounts() {

0 commit comments

Comments
 (0)