mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-05 06:07:09 +00:00
refactor(nc-gui): icons logic
This commit is contained in:
@@ -19,11 +19,11 @@ const options = computed(() => {
|
||||
})
|
||||
|
||||
const anyOptionHasIcon = computed(() => {
|
||||
return options.value.some((option) => option.iconType || (!option.iconType && option.icon))
|
||||
return options.value.some((option) => option.icons?.length)
|
||||
})
|
||||
|
||||
const anyOptionHasBgColor = computed(() => {
|
||||
return options.value.some((option) => option.iconColor)
|
||||
return options.value.some((option) => option.icons?.some((icon) => icon.iconColor))
|
||||
})
|
||||
|
||||
const isOptionSelected = (option: OnboardingOptionType) => {
|
||||
|
||||
Reference in New Issue
Block a user