Browse Source

enhancement: add icons to sort list

pull/2163/head
Wing-Kam Wong 2 years ago
parent
commit
ca7fcf1e9b
  1. 9
      packages/nc-gui/components/project/spreadsheet/components/SortListMenu.vue

9
packages/nc-gui/components/project/spreadsheet/components/SortListMenu.vue

@ -53,6 +53,9 @@
<span <span
:class="`caption font-weight-regular nc-sort-fld-${item.title}`" :class="`caption font-weight-regular nc-sort-fld-${item.title}`"
> >
<v-icon color="grey darken-4" small class="mr-1">
{{ item.icon }}
</v-icon>
{{ item.title }} {{ item.title }}
</span> </span>
</template> </template>
@ -90,6 +93,7 @@
<script> <script>
import { RelationTypes, UITypes } from "nocodb-sdk"; import { RelationTypes, UITypes } from "nocodb-sdk";
import { getUIDTIcon } from '~/components/project/spreadsheet/helpers/uiTypes'
export default { export default {
name: "SortListMenu", name: "SortListMenu",
@ -115,7 +119,10 @@ export default {
c.uidt === UITypes.LinkToAnotherRecord && c.uidt === UITypes.LinkToAnotherRecord &&
c.colOptions.type !== RelationTypes.BELONGS_TO c.colOptions.type !== RelationTypes.BELONGS_TO
) )
); ).map(c => ({
...c,
icon: getUIDTIcon(c.uidt)
}));
}, },
}, },
watch: { watch: {

Loading…
Cancel
Save