Browse Source

also allow AutoNumber and ID column types for Bar/QRCodes

pull/4898/head
Daniel Spaude 2 years ago
parent
commit
670ce8fed0
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 4
      packages/nc-gui/components/smartsheet/expanded-form/MoreActions.vue
  2. 2
      packages/nocodb-sdk/src/lib/columnRules/QrAndBarcodeRules.ts

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

@ -1,8 +1,7 @@
<script lang="ts" setup>
// import { ActiveViewInj, FieldsInj, IsPublicInj, MetaInj, inject, ref, useI18n, useNuxtApp, useProject } from '#imports'
import type { TableType, ViewType } from "nocodb-sdk"
import type { TableType, ViewType } from 'nocodb-sdk'
// const { t } = useI18n()
@ -22,7 +21,6 @@ import type { TableType, ViewType } from "nocodb-sdk"
// const selectedView = inject(ActiveViewInj, ref())
const { meta, view, primaryKey } = defineProps<{
meta: TableType
view: ViewType

2
packages/nocodb-sdk/src/lib/columnRules/QrAndBarcodeRules.ts

@ -9,4 +9,6 @@ export const AllowedColumnTypesForQrAndBarcodes = [
UITypes.Email,
UITypes.Decimal,
UITypes.Number,
UITypes.AutoNumber,
UITypes.ID
];

Loading…
Cancel
Save