Browse Source

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

pull/2949/head
Muhammed Mustafa 2 years ago
parent
commit
c90c1bab33
  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,7 +6,6 @@ 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'
@ -57,8 +56,6 @@ 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,7 +34,6 @@ 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,
@ -67,7 +66,6 @@ export function useColumn(column: ColumnType) {
isEnum, isEnum,
isSet, isSet,
isURL, isURL,
isCount,
isEmail, isEmail,
isAttachment, isAttachment,
isRating, isRating,

Loading…
Cancel
Save