Browse Source

qrcode: filter out qr code from look up column options ui

pr-4468-qr-code-extraction
Daniel Spaude 2 years ago
parent
commit
eb92d2200e
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 2
      packages/nc-gui/components/smartsheet/Form.vue
  2. 4
      packages/nc-gui/components/smartsheet/column/LookupOptions.vue

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

@ -277,7 +277,7 @@ function setFormData() {
localColumns.value = col
.filter((f) => f.show && !hiddenColTypes.includes(f.uidt))
.sort((a, b) => a.order - b.order)
.map((c) => ({ ...c, required: !!(c.required || 0) }))
.map((c) => ({ ...c, required: !!c.required }))
systemFieldsIds.value = getSystemColumns(col).map((c) => c.fk_column_id)

4
packages/nc-gui/components/smartsheet/column/LookupOptions.vue

@ -54,7 +54,9 @@ const columns = $computed(() => {
return []
}
return metas[selectedTable.id].columns.filter((c: any) => !isSystemColumn(c))
return metas[selectedTable.id].columns.filter((c: any) => {
return !(isSystemColumn(c) || c.uidt === UITypes.QrCode)
})
})
</script>

Loading…
Cancel
Save