Browse Source

refactor(nc-gui): remove unused code / vars

pull/6579/head
աɨռɢӄաօռɢ 1 year ago
parent
commit
4c6ab34055
  1. 2
      packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue
  2. 4
      packages/nc-gui/components/smartsheet/expanded-form/Comments.vue
  3. 13
      packages/nc-gui/components/virtual-cell/components/ListChildItems.vue

2
packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue

@ -57,7 +57,7 @@ const basesStore = useBases()
const { isMobileMode } = useGlobal() const { isMobileMode } = useGlobal()
const { loadProject, loadProjects, createProject: _createProject, updateProject, getProjectMetaInfo } = basesStore const { loadProjects, createProject: _createProject, updateProject, getProjectMetaInfo } = basesStore
const { bases } = storeToRefs(basesStore) const { bases } = storeToRefs(basesStore)

4
packages/nc-gui/components/smartsheet/expanded-form/Comments.vue

@ -8,10 +8,6 @@ const { loadCommentsAndLogs, commentsAndLogs, saveComment: _saveComment, comment
const commentsWrapperEl = ref<HTMLDivElement>() const commentsWrapperEl = ref<HTMLDivElement>()
const auditTabDomRef = (e: HTMLElement) => {
e.scrollTop = e.scrollHeight
}
const { user } = useGlobal() const { user } = useGlobal()
const tab = ref<'comments' | 'audits'>('comments') const tab = ref<'comments' | 'audits'>('comments')

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

@ -145,19 +145,6 @@ watch(childrenListPagination, () => {
skeltonAmountToShow.value = 10 skeltonAmountToShow.value = 10
} }
}) })
const isDataExist = computed<boolean>(() => {
return childrenList.value?.pageInfo?.totalRows || (isNew.value && state.value?.[colTitle.value]?.length)
})
const linkOrUnLink = (rowRef: Record<string, string>, id: string) => {
if (isPublic.value && !isForm.value) return
isNew.value
? unlinkRow(rowRef, parseInt(id))
: isChildrenListLinked.value[parseInt(id)]
? unlinkRow(rowRef, parseInt(id))
: linkRow(rowRef, parseInt(id))
}
</script> </script>
<template> <template>

Loading…
Cancel
Save