Merge pull request #5462 from aignatov-bio/ai-sci-8485-fix-barcode-button

Fix barcode button [SCI-8485]
This commit is contained in:
aignatov-bio 2023-05-23 13:10:05 +02:00 committed by GitHub
commit 1b01cc5407
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,9 @@
<template>
<div class="flex items-center">
<div class="flex items-center mr-3 flex-nowrap">
<button v-if="!searchOpened" class="btn btn-light icon-btn" @click="openSearch">
<i class="fas fa-search"></i>
</button>
<div v-if="searchOpened || barcodeSearchOpened" class="w-52">
<div v-if="searchOpened || barcodeSearchOpened" class="w-52 flex">
<div v-if="searchOpened" class="sci-input-container right-icon">
<input
ref="searchInput"
@ -82,12 +82,17 @@ export default {
},
closeBarcodeSearch() {
if (this.barcodeValue.length == 0) {
this.barcodeSearchOpened = false;
setTimeout(() => {
this.barcodeSearchOpened = false;
}, 100);
}
},
closeSearch() {
if (this.value.length == 0) {
this.searchOpened = false;
setTimeout(() => {
this.searchOpened = false;
}, 100);
}
},
updateRepositoySearch() {