Browse Source

chore(gui): lint

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3569/head
Pranav C 2 years ago committed by Raju Udava
parent
commit
173b0219d4
  1. 8
      packages/nc-gui/components/smartsheet/expanded-form/Header.vue
  2. 2
      packages/nc-gui/components/smartsheet/expanded-form/index.vue
  3. 1
      packages/nc-gui/components/virtual-cell/BelongsTo.vue
  4. 10
      packages/nc-gui/components/virtual-cell/components/ListChildItems.vue
  5. 6
      packages/nc-gui/composables/useSmartsheetRowStore.ts

8
packages/nc-gui/components/smartsheet/expanded-form/Header.vue

@ -1,5 +1,11 @@
<script lang="ts" setup>
import { useExpandedFormStoreOrThrow, useSmartsheetRowStoreOrThrow, useSmartsheetStoreOrThrow, useUIPermission, ReloadRowDataHookInj } from '#imports'
import {
ReloadRowDataHookInj,
useExpandedFormStoreOrThrow,
useSmartsheetRowStoreOrThrow,
useSmartsheetStoreOrThrow,
useUIPermission,
} from '#imports'
const emit = defineEmits(['cancel'])

2
packages/nc-gui/components/smartsheet/expanded-form/index.vue

@ -2,11 +2,11 @@
import type { TableType, ViewType } from 'nocodb-sdk'
import { isSystemColumn, isVirtualCol } from 'nocodb-sdk'
import type { Ref } from 'vue'
import { ReloadRowDataHookInj } from '~/context'
import Cell from '../Cell.vue'
import VirtualCell from '../VirtualCell.vue'
import Comments from './Comments.vue'
import Header from './Header.vue'
import { ReloadRowDataHookInj } from '~/context'
import {
FieldsInj,
IsFormInj,

1
packages/nc-gui/components/virtual-cell/BelongsTo.vue

@ -1,5 +1,4 @@
<script setup lang="ts">
import { createHook } from 'async_hooks'
import type { ColumnType } from 'nocodb-sdk'
import type { Ref } from 'vue'
import {

10
packages/nc-gui/components/virtual-cell/components/ListChildItems.vue

@ -78,10 +78,12 @@ const container = computed(() =>
const expandedFormDlg = ref(false)
const expandedFormRow = ref()
watch(() => props.cellValue, () => {
if (!isNew.value)
loadChildrenList()
})
watch(
() => props.cellValue,
() => {
if (!isNew.value) loadChildrenList()
},
)
</script>
<template>

6
packages/nc-gui/composables/useSmartsheetRowStore.ts

@ -109,11 +109,10 @@ const [useProvideSmartsheetRowStore, useSmartsheetRowStore] = useInjectionState(
}
}
const loadRow = async () => {
const record = await $api.dbTableRow.read(
NOCO,
(project?.value?.id) as string,
project?.value?.id as string,
meta.value.title,
extractPkFromRow(ref(row).value?.row, meta.value.columns as ColumnType[]),
)
@ -131,7 +130,8 @@ const [useProvideSmartsheetRowStore, useSmartsheetRowStore] = useInjectionState(
// todo: use better name
addLTARRef,
removeLTARRef,
syncLTARRefs,loadRow
syncLTARRefs,
loadRow,
}
}, 'smartsheet-row-store')

Loading…
Cancel
Save