Browse Source

open geodata type column only in expanded form or grid view

pull/5248/head
flisowna 2 years ago
parent
commit
d4d61405d5
  1. 6
      packages/nc-gui/components/cell/GeoData.vue

6
packages/nc-gui/components/cell/GeoData.vue

@ -1,6 +1,6 @@
<script lang="ts" setup>
import type { GeoLocationType } from 'nocodb-sdk'
import { Modal as AModal, latLongToJoinedString, useVModel } from '#imports'
import { Modal as AModal, ReadonlyInj, latLongToJoinedString, useVModel } from '#imports'
interface Props {
modelValue?: string | null
@ -16,6 +16,8 @@ const emits = defineEmits<Emits>()
const vModel = useVModel(props, 'modelValue', emits)
const readonly = inject(ReadonlyInj)
let isExpanded = $ref(false)
let isLoading = $ref(false)
@ -84,7 +86,7 @@ const onClickSetCurrentLocation = () => {
</div>
</div>
<div v-else data-testid="nc-geo-data-lat-long-set">{{ latLongStr }}</div>
<template #overlay>
<template v-if="!readonly" #overlay>
<a-form :model="formState" class="flex flex-col w-max-58" @finish="handleFinish">
<a-form-item>
<div class="flex mt-4 items-center mx-2">

Loading…
Cancel
Save