Commit 20e81ee8 authored by ibuler's avatar ibuler

[Update] 再次修改

parent aa8719d0
......@@ -107,10 +107,10 @@ export class HttpService {
.set('system_user_id', system_user_id)
.set('token', DataStore.guacamole_token);
if (system_user_username) {
params.set('username', system_user_username);
params = params.set('username', system_user_username);
}
if (system_user_password) {
params.set('password', system_user_password);
params = params.set('password', system_user_password);
}
const solution = localStorage.getItem('rdpSolution') || 'Auto';
if (solution !== 'Auto') {
......
......@@ -279,6 +279,7 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
}
manualSetUserAuthLogin(host, user) {
user = Object.assign({}, user);
const dialogRef = this._dialog.open(ManualPasswordDialogComponent, {
height: '250px',
width: '400px',
......
......@@ -10,5 +10,5 @@
<div style="float: right">
<button mat-raised-button (click)="onNoClick()" >{{"Cancel"|trans}}</button>
<button mat-raised-button color="primary" [mat-dialog-close]="data" >{{"Confirm"|trans}}</button>
<button mat-raised-button color="primary" [type]="'submit'" [mat-dialog-close]="data" >{{"Confirm"|trans}}</button>
</div>
......@@ -73,11 +73,11 @@ export class ElementGuacamoleComponent implements OnInit {
return null;
}
if (!environment.production) {
this.target = this._cookie.get('guacamole');
NavList.List[this.index].Rdp = this.el.nativeElement;
return null;
}
// if (!environment.production) {
// this.target = this._cookie.get('guacamole');
// NavList.List[this.index].Rdp = this.el.nativeElement;
// return null;
// }
this.registerHost();
}
......
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