Browse Source

feat(gui-v2): add url icon

pull/2716/head
Wing-Kam Wong 2 years ago committed by Pranav C
parent
commit
1a2a510740
  1. 13
      packages/nc-gui-v2/components/smartsheet-header/CellIcon.vue

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

@ -15,6 +15,7 @@ import DateIcon from '~icons/mdi/calendar'
import RatingIcon from '~icons/mdi/star' import RatingIcon from '~icons/mdi/star'
import GenericIcon from '~icons/mdi/square-rounded' import GenericIcon from '~icons/mdi/square-rounded'
import AttachmentIcon from '~icons/mdi/image-multiple-outline' import AttachmentIcon from '~icons/mdi/image-multiple-outline'
import URLIcon from '~icons/mdi/link'
const column = inject(ColumnInj) const column = inject(ColumnInj)
@ -35,10 +36,6 @@ const icon = computed(() => {
return SingleSelectIcon return SingleSelectIcon
} else if (additionalColMeta.isBoolean) { } else if (additionalColMeta.isBoolean) {
return BooleanIcon return BooleanIcon
} else if (additionalColMeta.isString) {
return h(StringIcon, {
class: 'text-[1.5rem]',
})
} else if (additionalColMeta.isTextArea) { } else if (additionalColMeta.isTextArea) {
return TextAreaIcon return TextAreaIcon
} else if (additionalColMeta.isRating) { } else if (additionalColMeta.isRating) {
@ -49,7 +46,13 @@ const icon = computed(() => {
// else if(additionalColMeta.isForeignKey) { // else if(additionalColMeta.isForeignKey) {
// return FKIcon // return FKIcon
// } // }
else { else if (additionalColMeta.isURL) {
return URLIcon
} else if (additionalColMeta.isString) {
return h(StringIcon, {
class: 'text-[1.5rem]',
})
} else {
return GenericIcon return GenericIcon
} }
}) })

Loading…
Cancel
Save