desktop toolbar refactoring

This commit is contained in:
Peter Papp
2021-08-31 15:14:55 +02:00
parent c916916a4d
commit d1cb1a378b
8 changed files with 124 additions and 103 deletions
+1 -1
View File
@@ -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
View File
@@ -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')