@ -1,6 +1,6 @@
< script lang = "ts" setup >
< script lang = "ts" setup >
import { ViewTypes } from 'nocodb-sdk'
import { ViewTypes } from 'nocodb-sdk'
import { IsGeodataActiveInj , ReadonlyInj , ref , useNuxtApp , useSmartsheetStoreOrThrow , viewIcons } from '#imports'
import { IsGeodataActiveInj , ReadonlyInj , ref , useGlobal , use NuxtApp , useSmartsheetStoreOrThrow , viewIcons } from '#imports'
const isGeodataActive = inject ( IsGeodataActiveInj , ref ( false ) )
const isGeodataActive = inject ( IsGeodataActiveInj , ref ( false ) )
@ -12,6 +12,8 @@ const emits = defineEmits<Emits>()
const readOnly = inject ( ReadonlyInj )
const readOnly = inject ( ReadonlyInj )
const { includeM2M } = useGlobal ( )
const { $e } = useNuxtApp ( )
const { $e } = useNuxtApp ( )
const { isSqlView } = useSmartsheetStoreOrThrow ( )
const { isSqlView } = useSmartsheetStoreOrThrow ( )
@ -23,6 +25,7 @@ function onOpenModal(type: ViewTypes, title = '') {
< / script >
< / script >
< template >
< template >
{ { geodataToggleState . show } }
< a -menu :selected-keys ="[]" class = "flex flex-col" >
< a -menu :selected-keys ="[]" class = "flex flex-col" >
< div >
< div >
< h3 class = "px-3 text-xs font-semibold flex items-center gap-4 text-gray-500" >
< h3 class = "px-3 text-xs font-semibold flex items-center gap-4 text-gray-500" >
@ -117,14 +120,14 @@ function onOpenModal(type: ViewTypes, title = '') {
< / div >
< / div >
< / a - t o o l t i p >
< / a - t o o l t i p >
< / a - m e n u - i t e m >
< / a - m e n u - i t e m >
< div v-if ="geodataToggleState.show" > SHOW < / div >
isGeodataActive : { { isGeodataActive } } readOnly : { { readOnly } }
< a -menu -item
< a -menu -item
v - if = "readOnly"
key = "map"
key = "map"
class = "group !flex !items-center !my-0 !h-2.5rem nc-create-map-view"
class = "group !flex !items-center !my-0 !h-2.5rem nc-create-map-view"
@ click = "onOpenModal(ViewTypes.MAP)"
@ click = "onOpenModal(ViewTypes.MAP)"
>
>
{ { geodataToggleState . show } }
< a -tooltip :mouse-enter-delay ="1" placement = "left" >
< a -tooltip :mouse-enter-delay ="1" placement = "left" >
< template # title >
< template # title >
{ { $t ( 'msg.info.addView.map' ) } }
{ { $t ( 'msg.info.addView.map' ) } }