mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
Merge pull request #5462 from aignatov-bio/ai-sci-8485-fix-barcode-button
Fix barcode button [SCI-8485]
This commit is contained in:
commit
1b01cc5407
1 changed files with 9 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue