Update Listing.vue
This commit is contained in:
parent
b302d3c0b3
commit
16456d73ef
@ -383,17 +383,22 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
req: function () {
|
req: function () {
|
||||||
// Reset the show value
|
if (window.sessionStorage.getItem('listFrozen') !=="true"){
|
||||||
this.showLimit = 50;
|
// Reset the show value
|
||||||
|
this.showLimit = 50;
|
||||||
|
|
||||||
// Ensures that the listing is displayed
|
// Ensures that the listing is displayed
|
||||||
Vue.nextTick(() => {
|
Vue.nextTick(() => {
|
||||||
// How much every listing item affects the window height
|
// How much every listing item affects the window height
|
||||||
this.setItemWeight();
|
this.setItemWeight();
|
||||||
|
|
||||||
// Fill and fit the window with listing items
|
// Fill and fit the window with listing items
|
||||||
this.fillWindow(true);
|
this.fillWindow(true);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
if (this.req.isDir) {
|
||||||
|
window.sessionStorage.setItem('listFrozen', "false");
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user