duh
This commit is contained in:
parent
9bf381813c
commit
4f038cf974
1 changed files with 15 additions and 23 deletions
|
@ -35,24 +35,22 @@
|
|||
<div class="config">
|
||||
<span>Route:</span>
|
||||
<ul class="level-select">
|
||||
<draggable :list="selectedRoute" :move="checkMove">
|
||||
<li v-for="(level, index) in selectedRoute">
|
||||
<div class="route-drag">≡</div>
|
||||
<li v-for="(level, index) in selectedRoute">
|
||||
<div class="route-drag">≡</div>
|
||||
|
||||
<GroupSelectComponent
|
||||
:selectedValue="level.value"
|
||||
:optGroups="stageLoaderLevelOptions"
|
||||
:onChange="(e) => onStageLoaderLevelChanged(index, e)"
|
||||
/>
|
||||
<button
|
||||
@click="onLevelDeleted(index)"
|
||||
type="button"
|
||||
class="route-remove"
|
||||
>
|
||||
×
|
||||
</button>
|
||||
</li>
|
||||
</draggable>
|
||||
<GroupSelectComponent
|
||||
:selectedValue="level.value"
|
||||
:optGroups="stageLoaderLevelOptions"
|
||||
:onChange="(e) => onStageLoaderLevelChanged(index, e)"
|
||||
/>
|
||||
<button
|
||||
@click="onLevelDeleted(index)"
|
||||
type="button"
|
||||
class="route-remove"
|
||||
>
|
||||
×
|
||||
</button>
|
||||
</li>
|
||||
<GroupSelectComponent
|
||||
placeholder="Choose a level.."
|
||||
:optGroups="stageLoaderLevelOptions"
|
||||
|
@ -87,16 +85,10 @@ import GroupSelectComponent from "./GroupSelectComponent";
|
|||
import stageLoaderLevels from "../data/stageLoaderLevels.json";
|
||||
import stageLoaderPresets from "../data/stageLoaderPresets.json";
|
||||
|
||||
// Lib
|
||||
import draggable from "vuedraggable";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
fastCodes: { type: Object },
|
||||
},
|
||||
components: {
|
||||
draggable,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
selectedRoute: [],
|
||||
|
|
Loading…
Reference in a new issue