diff --git a/Step/wwwroot/src/modules/base-components/modal-add-element-queue.ts b/Step/wwwroot/src/modules/base-components/modal-add-element-queue.ts index d2efe7b4..ba278713 100644 --- a/Step/wwwroot/src/modules/base-components/modal-add-element-queue.ts +++ b/Step/wwwroot/src/modules/base-components/modal-add-element-queue.ts @@ -65,6 +65,42 @@ export default class ModalAddElementQueue extends Vue { } } + // async navigateTo( + // path: string, + // absolutePath: string, + // local: boolean, + // todepth: number, + // fromdepth: number + // ) { + // debugger + // this.currentPath = absolutePath; + // this.lastClickPath = absolutePath; + // this.checkChangeNavigationType(local); + // var files = await this.getFilesForPath(absolutePath, path, local); + + // // controlla se impostare il currentDrive + // if (fromdepth == 0) this.currentDrive = absolutePath; + + // // controlla come organizzare le colonne. + // if (this.navigationDepth == 2 && todepth == 2 && fromdepth == 2) { + // this.fillArray(this.firstColumnData, this.secondColumnData); + // } + + // this.navigationDepth = todepth; + // if (todepth == 1) { + // this.fillArray(this.firstColumnData, files); + // this.secondColumnData.splice(0, this.secondColumnData.length); + // this.currentFilterFirst = ""; + // this.selectedFile = null; + // } + + // if (todepth == 2) { + // this.fillArray(this.secondColumnData, files); + // this.currentFilterSecond = ""; + // } + // this.calcBreadCrumb(absolutePath); + // } + async navigateTo( path: string, absolutePath: string, @@ -72,6 +108,10 @@ export default class ModalAddElementQueue extends Vue { todepth: number, fromdepth: number ) { + debugger + if(!absolutePath){ + absolutePath = path; + } this.currentPath = absolutePath; this.lastClickPath = absolutePath; this.checkChangeNavigationType(local); @@ -144,8 +184,9 @@ export default class ModalAddElementQueue extends Vue { } calcBreadCrumb(path: string) { + debugger this.breadcrumbs.splice(0, this.breadcrumbs.length); - if (path.startsWith("\\\\")) { + if (path && path.startsWith("\\\\")) { this.breadcrumbs.push({ name: "CN", path: "\\\\"