mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
added Toggle Grid/List View into the spotlight
This commit is contained in:
4
resources/js/store/modules/app.js
vendored
4
resources/js/store/modules/app.js
vendored
@@ -999,10 +999,10 @@ const actions = {
|
||||
// Change preview
|
||||
commit('TOGGLE_NAVIGATION_BARS')
|
||||
},
|
||||
changePreviewType: ({commit, state}, preview) => {
|
||||
togglePreviewType: ({commit, state}, preview) => {
|
||||
|
||||
// Get preview type
|
||||
let previewType = preview
|
||||
let previewType = preview || state.itemViewType === 'list' ? 'grid' : 'list'
|
||||
|
||||
// Store preview type to localStorage
|
||||
localStorage.setItem('preview_type', previewType)
|
||||
|
||||
Reference in New Issue
Block a user