Remove the drive filter on reload

This commit is contained in:
yflory 2022-10-17 14:00:53 +02:00
parent 8e05f159ae
commit 0faa99fbfc

View File

@ -3164,7 +3164,6 @@ define([
$block.find('a.cp-app-drive-rm-filter')
.click(function () {
APP.store[FILTER_BY] = undefined;
localStore.put(FILTER_BY, undefined);
APP.displayDirectory(currentPath);
});
}
@ -3172,7 +3171,6 @@ define([
.click(function () {
var type = $(this).attr('data-type') || 'invalid-filter';
APP.store[FILTER_BY] = type;
localStore.put(FILTER_BY, type);
APP.displayDirectory([FILTER, type, currentPath]);
});
@ -4069,7 +4067,6 @@ define([
currentPath = path;
} else {
APP.store[FILTER_BY] = undefined;
localStore.put(FILTER_BY, undefined);
}
var isInRoot = manager.isPathIn(path, [ROOT]);
var inTrash = manager.isPathIn(path, [TRASH]);