Browse Source

chore/gui-v2-count-cell-added-icon-to-cell-header

pull/2949/head
Muhammed Mustafa 2 years ago
parent
commit
8020665e0a
  1. 3
      packages/nc-gui-v2/components/smartsheet-header/CellIcon.vue
  2. 2
      packages/nc-gui-v2/composables/useColumn.ts

3
packages/nc-gui-v2/components/smartsheet-header/CellIcon.vue

@ -6,6 +6,7 @@ import { useColumn } from '#imports'
import KeyIcon from '~icons/mdi/key-variant' import KeyIcon from '~icons/mdi/key-variant'
import JSONIcon from '~icons/mdi/code-json' import JSONIcon from '~icons/mdi/code-json'
// import FKIcon from '~icons/mdi/link-variant' // import FKIcon from '~icons/mdi/link-variant'
import CountIcon from '~icons/mdi/counter'
import TextAreaIcon from '~icons/mdi/card-text-outline' import TextAreaIcon from '~icons/mdi/card-text-outline'
import StringIcon from '~icons/mdi/alpha-a-box-outline' import StringIcon from '~icons/mdi/alpha-a-box-outline'
import BooleanIcon from '~icons/mdi/check-box-outline' import BooleanIcon from '~icons/mdi/check-box-outline'
@ -56,6 +57,8 @@ const icon = computed(() => {
return DecimalIcon return DecimalIcon
} else if (additionalColMeta.isPhoneNumber) { } else if (additionalColMeta.isPhoneNumber) {
return FilePhoneIcon return FilePhoneIcon
} else if (additionalColMeta.isCount) {
return CountIcon
} }
// else if(additionalColMeta.isForeignKey) { // else if(additionalColMeta.isForeignKey) {
// return FKIcon // return FKIcon

2
packages/nc-gui-v2/composables/useColumn.ts

@ -34,6 +34,7 @@ export function useColumn(column: ColumnType) {
const isDecimal = uiDatatype === UITypes.Decimal const isDecimal = uiDatatype === UITypes.Decimal
const isDuration = uiDatatype === UITypes.Duration const isDuration = uiDatatype === UITypes.Duration
const isPercent = uiDatatype === UITypes.Percent const isPercent = uiDatatype === UITypes.Percent
const isCount = uiDatatype === UITypes.Count
const isAutoSaved = [ const isAutoSaved = [
UITypes.SingleLineText, UITypes.SingleLineText,
UITypes.LongText, UITypes.LongText,
@ -66,6 +67,7 @@ export function useColumn(column: ColumnType) {
isEnum, isEnum,
isSet, isSet,
isURL, isURL,
isCount,
isEmail, isEmail,
isAttachment, isAttachment,
isRating, isRating,

Loading…
Cancel
Save