Skip to content

Commit

Permalink
Merge pull request #323 from jumpserver/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
BaiJiangJie authored Dec 14, 2020
2 parents 6bf97fd + b197b28 commit 10f7cf4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/elements/asset-tree/asset-tree.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export class ElementAssetTreeComponent implements OnInit, OnDestroy {
}
const cloudNodes = await this._http.getMyGrantedK8SApps().toPromise();
if (cloudNodes.length > 0) {
const _cloudTree = $.fn.zTree.init($('#K8SAppsTree'), setting, remoteNodes);
const _cloudTree = $.fn.zTree.init($('#K8SAppsTree'), setting, cloudNodes);
cloudAppRootNode['children'] = _cloudTree.getNodes();
applicationNodes[0].children.push(cloudAppRootNode);
_cloudTree.destroy();
Expand Down
12 changes: 6 additions & 6 deletions src/app/elements/connect/connect.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ export class ElementConnectComponent implements OnInit, OnDestroy {
case 'remote_app':
this._http.getMyGrantedRemoteApps(loginTo).subscribe(
nodes => {
if (nodes.length === 1) {
if (nodes.length === 2) {
this.hasLoginTo = true;
const node = nodes[0];
const node = nodes[1];
this.Connect(node);
}
}
Expand All @@ -79,9 +79,9 @@ export class ElementConnectComponent implements OnInit, OnDestroy {
case 'database_app':
this._http.getMyGrantedDBApps(loginTo).subscribe(
nodes => {
if (nodes.length === 1) {
if (nodes.length === 2) {
this.hasLoginTo = true;
const node = nodes[0];
const node = nodes[1];
this.Connect(node);
}
}
Expand All @@ -90,9 +90,9 @@ export class ElementConnectComponent implements OnInit, OnDestroy {
case 'k8s_app':
this._http.getMyGrantedK8SApps(loginTo).subscribe(
nodes => {
if (nodes.length === 1) {
if (nodes.length === 2) {
this.hasLoginTo = true;
const node = nodes[0];
const node = nodes[1];
this.Connect(node);
}
}
Expand Down

0 comments on commit 10f7cf4

Please sign in to comment.