Commit 7288c280 authored by janis.streib's avatar janis.streib 🦉
Browse files

FIX: no concurrent mangling and persist change

parent bebd5ec9
Pipeline #111537 passed with stages
in 8 minutes and 25 seconds
......@@ -20,7 +20,7 @@
class="font-italic text-center mt-3">
Keine Aktionen geplant
</div>
<Draggable v-else @change="drag_change" :list="$store.state.ta_list" @start="drag=true" @end="drag=false" handle=".handle">
<Draggable v-else @change="drag_change" :value="$store.state.ta_list" @start="drag=true" @end="drag=false" handle=".handle">
<b-card v-for="(element, index) in $store.state.ta_list" :key="element.id"
:border-variant="function2variant(element.object_function)" class="mb-3 shadow" no-body>
<div class="element-number handle"
......
......@@ -96,6 +96,7 @@ const store = new Vuex.Store({
},
moveTaElements (state, payload) {
state.ta_list.move(payload.from, payload.to)
window.localStorage.setItem('ta_list', JSON.stringify(state.ta_list))
},
login (state, payload) {
const user = payload.user
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment