mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-05 05:35:58 +00:00
grid and list view working
This commit is contained in:
Vendored
+3
-2
@@ -837,9 +837,10 @@ const defaultState = {
|
||||
],
|
||||
}
|
||||
const actions = {
|
||||
changePreviewType: ({commit, state}) => {
|
||||
changePreviewType: ({commit, state}, preview) => {
|
||||
|
||||
// Get preview type
|
||||
let previewType = state.FilePreviewType == 'grid' ? 'list' : 'grid'
|
||||
let previewType = preview
|
||||
|
||||
// Store preview type to localStorage
|
||||
localStorage.setItem('preview_type', previewType)
|
||||
|
||||
Reference in New Issue
Block a user