Browse Source

open folder to show current page when current page is a folder

pull/3771/head
Opal Mizrahi 4 years ago
parent
commit
3ee5ab6e39
1 changed files with 4 additions and 0 deletions
  1. 4
      client/themes/default/components/nav-sidebar.vue

4
client/themes/default/components/nav-sidebar.vue

@ -213,6 +213,10 @@ export default {
this.parents = [this.currentParent, ...invertedAncestors.reverse()] this.parents = [this.currentParent, ...invertedAncestors.reverse()]
this.currentParent = _.last(this.parents) this.currentParent = _.last(this.parents)
if (curPage.isFolder) {
this.fetchBrowseItems(curPage)
}
this.loadedCache = [curPage.parent] this.loadedCache = [curPage.parent]
this.currentItems = _.filter(items, ['parent', curPage.parent]) this.currentItems = _.filter(items, ['parent', curPage.parent])
this.$store.commit(`loadingStop`, 'browse-load') this.$store.commit(`loadingStop`, 'browse-load')

Loading…
Cancel
Save