Commit 63735d4f authored by MARCO Jonathan's avatar MARCO Jonathan
Browse files

馃毀 The select to select the condition field sorted

parent e0b64551
......@@ -66,7 +66,9 @@
<script lang="ts">
import Vue, {PropType} from 'vue';
import {UsfTabConditionalBasicSelect} from '../UsfTabConditionalBasicSelect';
import {InputSelectionItem} from '@form-plugin/components/formbuilder/settings/tabs/conditional/UsfTabConditionalBasicSelect';
import {
InputSelectionItem,
} from '@form-plugin/components/formbuilder/settings/tabs/conditional/UsfTabConditionalBasicSelect';
import {Field, FieldCondition} from '#form-plugin/models/form';
import {mapActions, mapGetters} from 'vuex';
import {UsfTabConditionalDraggableContainer} from '../UsfTabConditionalDraggableContainer';
......@@ -184,7 +186,11 @@ export default Vue.extend({
conditionalBasicItems(): InputSelectionItem[] {
return [
...this.userTemplatesAttributes,
...this.otherInputs,
...this.otherInputs.sort((a, b) => {
if (a.name < b.name) return -1;
if (a.name > b.name) return 1;
return 0;
}),
];
},
},
......
Supports Markdown
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