Fixed 'Save' button issue where dialog is not getting closed.

This commit is contained in:
Khushboo Vashi 2021-09-28 15:04:37 +05:30 committed by Akshay Joshi
parent 1569be7866
commit 7b6101bc6d

View File

@ -177,6 +177,12 @@ export class Tree {
await this.tree.closeDirectory(item);
}
async setId(item, data) {
if(item) {
item.getMetadata('data').id = data.id;
}
}
deselect(item) {
this.tree.deSelectActiveFile(item);
}
@ -240,7 +246,7 @@ export class Tree {
if (this.hasParent(item)) {
let _siblings = this.parent(item).children.filter((_item) => _item.path !== item.path);
if (typeof(_siblings) !== 'object') return [_siblings];
else _siblings;
else return _siblings;
}
return [];
}