Commit 3f5049c7 authored by ibuler's avatar ibuler

[Update] 修改nav

parent 0b142705
...@@ -48,7 +48,7 @@ export class ElementNavComponent implements OnInit { ...@@ -48,7 +48,7 @@ export class ElementNavComponent implements OnInit {
break; break;
} }
case 'ConnectSFTP': { case 'ConnectSFTP': {
window.open('/luna/sftp/'); window.open('/coco/elfinder/sftp/');
break; break;
} }
case 'HideLeft': { case 'HideLeft': {
......
...@@ -13,6 +13,9 @@ export class SftpComponent implements OnInit { ...@@ -13,6 +13,9 @@ export class SftpComponent implements OnInit {
@ViewChild('sftp') el: ElementRef; @ViewChild('sftp') el: ElementRef;
constructor(private sanitizer: DomSanitizer) { constructor(private sanitizer: DomSanitizer) {
if (!this.host) {
DataStore.NavShow = false;
}
} }
ngOnInit() { ngOnInit() {
...@@ -20,11 +23,8 @@ export class SftpComponent implements OnInit { ...@@ -20,11 +23,8 @@ export class SftpComponent implements OnInit {
if (this.host) { if (this.host) {
// _target += 'f5857eee-c114-4564-af8f-96329c400a8a' + '/'; // _target += 'f5857eee-c114-4564-af8f-96329c400a8a' + '/';
_target += this.host.id + '/'; _target += this.host.id + '/';
} else {
DataStore.NavShow = false;
} }
this.trust(_target); this.trust(_target);
console.log(this.host.id);
} }
trust(url) { trust(url) {
......
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