Browse Source

qr scanner: close scanner when multiple rows are found (no unique row match)

pull/5114/head
Daniel Spaude 2 years ago
parent
commit
8c1a0db07d
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 4
      packages/nc-gui/components/smartsheet/toolbar/QrScannerButton.vue

4
packages/nc-gui/components/smartsheet/toolbar/QrScannerButton.vue

@ -65,12 +65,12 @@ const onDecode = async (codeValue: string) => {
lastScannedCode.value = '' lastScannedCode.value = ''
}, 4000) }, 4000)
if (foundRowsForCode.length === 0) { if (foundRowsForCode.length === 0) {
// extract into localisation file
message.info(t('msg.info.codeScanner.noRowFoundForCode')) message.info(t('msg.info.codeScanner.noRowFoundForCode'))
} }
if (foundRowsForCode.length > 1) { if (foundRowsForCode.length > 1) {
// extract into localisation file
message.warn(t('msg.info.codeScanner.moreThanOneRowFoundForCode')) message.warn(t('msg.info.codeScanner.moreThanOneRowFoundForCode'))
showCodeScannerOverlay.value = false
lastScannedCode.value = ''
} }
return return
} }

Loading…
Cancel
Save