|
@@ -2,7 +2,7 @@
|
|
|
<nav class="node-view-child-list" :class="{ 'smartphone': smartphone }">
|
|
|
<ul>
|
|
|
<li
|
|
|
- v-for="(child, i) in children" :key="child.id"
|
|
|
+ v-for="(child, i) in orderedChildren" :key="child.id"
|
|
|
class="node-view-child-list-item"
|
|
|
>
|
|
|
<dot-button
|
|
@@ -21,7 +21,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapGetters } from 'vuex'
|
|
|
-
|
|
|
+import { orderByVariant } from '@/helpers/common'
|
|
|
|
|
|
export default {
|
|
|
name: 'NodeViewChildList',
|
|
@@ -37,7 +37,11 @@ export default {
|
|
|
},
|
|
|
|
|
|
computed: {
|
|
|
- ...mapGetters(['activeNodes'])
|
|
|
+ ...mapGetters(['activeNodes']),
|
|
|
+
|
|
|
+ orderedChildren () {
|
|
|
+ return orderByVariant(this.children)
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
methods: {
|