Browse Source

enhancement: add icons to sort list

pull/2163/head
Wing-Kam Wong 3 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
: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 }}
</span>
</template>
@ -90,6 +93,7 @@
<script>
import { RelationTypes, UITypes } from "nocodb-sdk";
import { getUIDTIcon } from '~/components/project/spreadsheet/helpers/uiTypes'
export default {
name: "SortListMenu",
@ -115,7 +119,10 @@ export default {
c.uidt === UITypes.LinkToAnotherRecord &&
c.colOptions.type !== RelationTypes.BELONGS_TO
)
);
).map(c => ({
...c,
icon: getUIDTIcon(c.uidt)
}));
},
},
watch: {

Loading…
Cancel
Save