Commit 613e9639 authored by ibuler's avatar ibuler

[update] 修改初始化

parent c94c1501
......@@ -286,6 +286,9 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
data: {username: user.username}
});
dialogRef.afterClosed().subscribe(result => {
if (!result) {
return;
}
user.username = btoa(result.username);
user.password = btoa(result.password);
return this.login(host, user);
......
......@@ -7,7 +7,7 @@
<mat-form-field style="width: 100%">
<input matInput [type]="'password'" [(ngModel)]="data.password"
[formControl]="PasswordControl" placeholder="{{'Password'|trans}}"
(keyup.enter)="onEnter()">
(keyup.enter)="onEnter()" [attr.cdkFocusInitial]="data.username? true : null">
</mat-form-field>
<div style="float: right">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment