This commit is contained in:
Matteias Collet 2020-06-28 02:25:11 +02:00
parent 9bf381813c
commit 4f038cf974

View file

@ -35,24 +35,22 @@
<div class="config"> <div class="config">
<span>Route:</span> <span>Route:</span>
<ul class="level-select"> <ul class="level-select">
<draggable :list="selectedRoute" :move="checkMove"> <li v-for="(level, index) in selectedRoute">
<li v-for="(level, index) in selectedRoute"> <div class="route-drag">&#8801;</div>
<div class="route-drag">&#8801;</div>
<GroupSelectComponent <GroupSelectComponent
:selectedValue="level.value" :selectedValue="level.value"
:optGroups="stageLoaderLevelOptions" :optGroups="stageLoaderLevelOptions"
:onChange="(e) => onStageLoaderLevelChanged(index, e)" :onChange="(e) => onStageLoaderLevelChanged(index, e)"
/> />
<button <button
@click="onLevelDeleted(index)" @click="onLevelDeleted(index)"
type="button" type="button"
class="route-remove" class="route-remove"
> >
&#215; &#215;
</button> </button>
</li> </li>
</draggable>
<GroupSelectComponent <GroupSelectComponent
placeholder="Choose a level.." placeholder="Choose a level.."
:optGroups="stageLoaderLevelOptions" :optGroups="stageLoaderLevelOptions"
@ -87,16 +85,10 @@ import GroupSelectComponent from "./GroupSelectComponent";
import stageLoaderLevels from "../data/stageLoaderLevels.json"; import stageLoaderLevels from "../data/stageLoaderLevels.json";
import stageLoaderPresets from "../data/stageLoaderPresets.json"; import stageLoaderPresets from "../data/stageLoaderPresets.json";
// Lib
import draggable from "vuedraggable";
export default { export default {
props: { props: {
fastCodes: { type: Object }, fastCodes: { type: Object },
}, },
components: {
draggable,
},
data() { data() {
return { return {
selectedRoute: [], selectedRoute: [],