fix: stay in the same position after renaming or deleting
This commit is contained in:
parent
065d3a6ab4
commit
27648d1e9b
@ -1,5 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="editor-container">
|
<div
|
||||||
|
id="editor-container"
|
||||||
|
@touchmove.prevent.stop
|
||||||
|
@wheel.prevent.stop
|
||||||
|
>
|
||||||
<header-bar>
|
<header-bar>
|
||||||
<action icon="close" :label="$t('buttons.close')" @action="close()" />
|
<action icon="close" :label="$t('buttons.close')" @action="close()" />
|
||||||
<title>{{ req.name }}</title>
|
<title>{{ req.name }}</title>
|
||||||
|
|||||||
@ -383,7 +383,7 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
req: function () {
|
req: function () {
|
||||||
if (window.sessionStorage.getItem('listFrozen') !=="true"){
|
if (window.sessionStorage.getItem("listFrozen") !=="true" && window.sessionStorage.getItem("modified") !=="true"){
|
||||||
// Reset the show value
|
// Reset the show value
|
||||||
this.showLimit = 50;
|
this.showLimit = 50;
|
||||||
|
|
||||||
@ -397,7 +397,8 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (this.req.isDir) {
|
if (this.req.isDir) {
|
||||||
window.sessionStorage.setItem('listFrozen', "false");
|
window.sessionStorage.setItem("listFrozen", "false");
|
||||||
|
window.sessionStorage.setItem("modified", "false");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user