fix breadcrumbs

This commit is contained in:
Alessandro Francia
2018-09-21 08:45:48 +02:00
parent 58bd3fb700
commit d48608ad11
@@ -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: "\\\\"