@oat-sa/tao-core-ui 3.24.3 → 3.24.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -775,6 +775,9 @@ define(['jquery', 'lodash', 'ui/pagination', 'handlebars', 'lib/handlebars/helpe
|
|
|
775
775
|
const needTree = !existing || !existing.children && !existing.empty;
|
|
776
776
|
const cacheKey = listCacheKey();
|
|
777
777
|
const needList = !existing || existing.listCacheKey !== cacheKey;
|
|
778
|
+
if (needList && !searchMode) {
|
|
779
|
+
setFilesLoading(true);
|
|
780
|
+
}
|
|
778
781
|
const treePromise = needTree ? (setTreeLoading(true), browseRequest(path, {
|
|
779
782
|
part: 'tree',
|
|
780
783
|
depth: 1,
|
|
@@ -803,6 +806,9 @@ define(['jquery', 'lodash', 'ui/pagination', 'handlebars', 'lib/handlebars/helpe
|
|
|
803
806
|
}
|
|
804
807
|
cb(getByExactPath(tree, path) || getByPath(tree, path));
|
|
805
808
|
}).catch(function () {
|
|
809
|
+
if (!searchMode) {
|
|
810
|
+
setFilesLoading(false);
|
|
811
|
+
}
|
|
806
812
|
cb(null);
|
|
807
813
|
});
|
|
808
814
|
return;
|
package/package.json
CHANGED
|
@@ -657,6 +657,10 @@ export default function (options) {
|
|
|
657
657
|
const cacheKey = listCacheKey();
|
|
658
658
|
const needList = !existing || existing.listCacheKey !== cacheKey;
|
|
659
659
|
|
|
660
|
+
if (needList && !searchMode) {
|
|
661
|
+
setFilesLoading(true);
|
|
662
|
+
}
|
|
663
|
+
|
|
660
664
|
const treePromise = needTree
|
|
661
665
|
? (setTreeLoading(true),
|
|
662
666
|
browseRequest(path, {
|
|
@@ -697,6 +701,9 @@ export default function (options) {
|
|
|
697
701
|
cb(getByExactPath(tree, path) || getByPath(tree, path));
|
|
698
702
|
})
|
|
699
703
|
.catch(function () {
|
|
704
|
+
if (!searchMode) {
|
|
705
|
+
setFilesLoading(false);
|
|
706
|
+
}
|
|
700
707
|
cb(null);
|
|
701
708
|
});
|
|
702
709
|
return;
|