Browse Source

fix(nc-gui): allow comments to expand form

pull/3563/head
Wing-Kam Wong 2 years ago
parent
commit
e520a5da3d
  1. 2
      packages/nc-gui/components/smartsheet/Gallery.vue
  2. 2
      packages/nc-gui/components/smartsheet/Grid.vue
  3. 2
      packages/nc-gui/components/smartsheet/Kanban.vue

2
packages/nc-gui/components/smartsheet/Gallery.vue

@ -92,8 +92,6 @@ const attachments = (record: any): Attachment[] => {
} }
const expandForm = (row: RowType, state?: Record<string, any>) => { const expandForm = (row: RowType, state?: Record<string, any>) => {
if (!isUIAllowed('xcDatatableEditable')) return
const rowId = extractPkFromRow(row.row, meta.value!.columns!) const rowId = extractPkFromRow(row.row, meta.value!.columns!)
if (rowId) { if (rowId) {

2
packages/nc-gui/components/smartsheet/Grid.vue

@ -139,8 +139,6 @@ reloadViewDataHook?.on(async (shouldShowLoading) => {
const skipRowRemovalOnCancel = ref(false) const skipRowRemovalOnCancel = ref(false)
const expandForm = (row: Row, state?: Record<string, any>, fromToolbar = false) => { const expandForm = (row: Row, state?: Record<string, any>, fromToolbar = false) => {
if (!isUIAllowed('xcDatatableEditable')) return
const rowId = extractPkFromRow(row.row, meta.value?.columns as ColumnType[]) const rowId = extractPkFromRow(row.row, meta.value?.columns as ColumnType[])
if (rowId) { if (rowId) {

2
packages/nc-gui/components/smartsheet/Kanban.vue

@ -106,8 +106,6 @@ reloadViewMetaHook?.on(async () => {
}) })
const expandForm = (row: RowType, state?: Record<string, any>) => { const expandForm = (row: RowType, state?: Record<string, any>) => {
if (!hasEditPermission) return
const rowId = extractPkFromRow(row.row, meta.value!.columns!) const rowId = extractPkFromRow(row.row, meta.value!.columns!)
if (rowId) { if (rowId) {

Loading…
Cancel
Save