mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-24 01:50:38 +00:00
desktop toolbar refactoring
This commit is contained in:
+1
-1
@@ -170,7 +170,7 @@ const mutations = {
|
||||
},
|
||||
INCREASE_FOLDER_ITEM(state, id) {
|
||||
state.entries.map(el => {
|
||||
if (el.data.id && el.data.id === id) el.items++
|
||||
if (el.data.id && el.data.id === id) el.data.attributes.items++
|
||||
})
|
||||
},
|
||||
REMOVE_ITEM_FROM_CLIPBOARD(state, item) {
|
||||
|
||||
+1
-1
@@ -73,7 +73,7 @@ const actions = {
|
||||
.then(() => {
|
||||
itemsToMove.forEach(item => {
|
||||
commit('REMOVE_ITEM', item.id)
|
||||
commit('INCREASE_FOLDER_ITEM', to_item.id)
|
||||
commit('INCREASE_FOLDER_ITEM', to_item.data.id)
|
||||
|
||||
if (item.type === 'folder')
|
||||
dispatch('getAppData')
|
||||
|
||||
Reference in New Issue
Block a user