Browse Source

code scanner for forms - WIP

pull/5114/head
Daniel Spaude 2 years ago
parent
commit
d31501564b
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 13
      packages/nc-gui/pages/[projectType]/form/[viewId]/index/index.vue

13
packages/nc-gui/pages/[projectType]/form/[viewId]/index/index.vue

@ -134,7 +134,6 @@ const onDecode = async (codeValue: string) => {
</div>
<div>
SCANNER PLACEHOLDER
<a-button class="nc-btn-find-row-by-scan nc-toolbar-btn" @click="showCodeScannerOverlay = true">
<div class="flex items-center gap-1">
<QrCodeScan />
@ -152,16 +151,8 @@ const onDecode = async (codeValue: string) => {
@cancel="scannerIsReady = false"
>
<div class="relative flex flex-col h-full">
<div>
<StreamBarcodeReader
v-show="scannerIsReady"
@decode="onDecode"
@loaded="onLoaded"
></StreamBarcodeReader>
<div v-if="showScannerIsLoadingMessage" class="text-left text-wrap mt-2 text-[#e65100] text-xs">
{{ $t('msg.info.codeScanner.loadingScanner') }}
</div>
</div>
<StreamBarcodeReader v-show="scannerIsReady" @decode="onDecode" @loaded="onLoaded">
</StreamBarcodeReader>
</div>
</a-modal>
</div>

Loading…
Cancel
Save