feat: ShowLeftbar bug fix

parent 75f77308
...@@ -46,6 +46,7 @@ export class CleftbarComponent implements OnInit { ...@@ -46,6 +46,7 @@ export class CleftbarComponent implements OnInit {
clientX = 0; clientX = 0;
clientY = 0; clientY = 0;
TooltipPosition = 'above'; TooltipPosition = 'above';
auto: boolean;
static Reload() { static Reload() {
} }
...@@ -95,7 +96,9 @@ export class CleftbarComponent implements OnInit { ...@@ -95,7 +96,9 @@ export class CleftbarComponent implements OnInit {
this._http.get_my_asset_groups_assets() this._http.get_my_asset_groups_assets()
.subscribe(response => { .subscribe(response => {
this.HostGroups = response; this.HostGroups = response;
this.autologin(); if (!this.auto) {
this.autologin();
}
}); });
} }
...@@ -129,6 +132,7 @@ export class CleftbarComponent implements OnInit { ...@@ -129,6 +132,7 @@ export class CleftbarComponent implements OnInit {
if (!tag) { if (!tag) {
this._layer.alert('Maybe you do not have permission on that host'); this._layer.alert('Maybe you do not have permission on that host');
} }
this.auto = true;
} }
Connect(host) { Connect(host) {
......
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