mirror of
https://github.com/directus/directus.git
synced 2026-02-05 20:05:22 -05:00
Default field sort order to database ordinal sort
And use alphabetical where appropriate Fixes #4341
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, toRefs, ref, watch, onMounted, onUnmounted, PropType, computed } from '@vue/composition-api';
|
||||
import { defineComponent, toRefs, ref, PropType, computed } from '@vue/composition-api';
|
||||
import FieldListItem from '../v-field-template/field-list-item.vue';
|
||||
import { useFieldsStore } from '@/stores';
|
||||
import { Field, Collection, Relation } from '@/types';
|
||||
@@ -73,12 +73,10 @@ export default defineComponent({
|
||||
},
|
||||
},
|
||||
setup(props, { emit }) {
|
||||
const fieldsStore = useFieldsStore();
|
||||
|
||||
const menuActive = ref(false);
|
||||
const { collection } = toRefs(props);
|
||||
|
||||
const { info, primaryKeyField, fields: fieldsInCollection, sortField } = useCollection(collection);
|
||||
const { info } = useCollection(collection);
|
||||
const { tree } = useFieldTree(collection, {
|
||||
fields: props.inject?.fields.filter((field) => field.collection === props.collection) || [],
|
||||
relations: props.inject?.relations || [],
|
||||
|
||||
Reference in New Issue
Block a user