+
{{ t("files.files") }}
+
- {
watch(req, () => {
// Reset the show value
- showLimit.value = 50;
+ if (
+ window.sessionStorage.getItem("listFrozen") !== "true" &&
+ window.sessionStorage.getItem("modified") !== "true"
+ ) {
+ showLimit.value = 50;
- nextTick(() => {
- // Ensures that the listing is displayed
- // How much every listing item affects the window height
- setItemWeight();
+ nextTick(() => {
+ // Ensures that the listing is displayed
+ // How much every listing item affects the window height
+ setItemWeight();
- // Fill and fit the window with listing items
- fillWindow(true);
- });
+ // Fill and fit the window with listing items
+ fillWindow(true);
+ });
+ }
+ if (req.value?.isDir) {
+ window.sessionStorage.setItem("listFrozen", "false");
+ window.sessionStorage.setItem("modified", "false");
+ }
});
onMounted(() => {