Skip to content
Snippets Groups Projects
Commit 4b3de109 authored by Theo Lesage's avatar Theo Lesage
Browse files

Remove call to navigation store in element vuex store

parent 0c5d8356
No related branches found
No related tags found
1 merge request!1675Remove call to navigation store in element vuex store
......@@ -317,7 +317,6 @@ export const actions = {
try {
await api.deleteElement({ id, delete_children: true })
commit('remove', id)
commit('navigation/addToScheduledDeletion', id, { root: true })
if (id === rootState.annotation.selectedElement?.id) { commit('annotation/selectElement', null, { root: true }) }
commit('notifications/notify', { type: 'success', text: 'Element deletion has been scheduled.' }, { root: true })
} catch (err) {
......@@ -332,7 +331,6 @@ export const actions = {
try {
await api.moveElement(payload)
commit('remove', payload.source)
commit('navigation/addToScheduledDeletion', payload.source, { root: true })
commit('notifications/notify', { type: 'success', text: 'Element moving has been scheduled.' }, { root: true })
} catch (err) {
commit('notifications/notify', { type: 'error', text: errorParser(err) }, { root: true })
......
......@@ -599,10 +599,6 @@ describe('elements', () => {
mutation: 'elements/remove',
payload: 'element'
},
{
mutation: 'navigation/addToScheduledDeletion',
payload: 'element'
},
{
mutation: 'notifications/notify',
payload: { type: 'success', text: 'Element deletion has been scheduled.' }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment