mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 19:53:19 +08:00
(fix) Quick search: Remove tooltip [SCI-10699]
This commit is contained in:
parent
65a78f6213
commit
ef534eab4f
3 changed files with 7 additions and 2 deletions
|
@ -24,7 +24,7 @@
|
|||
<i class="sn-icon sn-icon-search"></i>
|
||||
<i v-if="localQuery.length > 0"
|
||||
class="sn-icon cursor-pointer sn-icon-close absolute right-0 -top-0.5"
|
||||
@click="localQuery = ''; $refs.searchField.focus()"></i>
|
||||
@click="localQuery = ''; $refs.searchField.focus()" :title="i18n.t('nav.clear')"></i>
|
||||
</div>
|
||||
</template>
|
||||
<template v-slot:flyout >
|
||||
|
@ -103,6 +103,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
/* global HelperModule */
|
||||
import FoldersComponent from './groups/folders.vue';
|
||||
import ProjectsComponent from './groups/projects.vue';
|
||||
import ExperimentsComponent from './groups/experiments.vue';
|
||||
|
@ -266,6 +267,8 @@ export default {
|
|||
|
||||
if (event.target.value.length < 2) {
|
||||
this.invalidQuery = true;
|
||||
const minLength = 2;
|
||||
HelperModule.flashAlertMsg(this.i18n.t('general.query.length_too_short', { min_length: minLength }), 'danger');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<i class="sn-icon sn-icon-search"></i>
|
||||
<div v-if="this.searchQuery.length > 1" class="flex items-center gap-1 absolute right-2 top-1.5">
|
||||
<div class="btn btn-light icon-btn btn-xs" @click="this.searchQuery = ''; $refs.searchField.focus()">
|
||||
<i class="sn-icon sn-icon-close m-0"></i>
|
||||
<i class="sn-icon sn-icon-close m-0" :title="i18n.t('nav.clear')"></i>
|
||||
</div>
|
||||
<div class="btn btn-light icon-btn btn-xs" :title="i18n.t('search.quick_search.search_options')"
|
||||
:class="{'active': filtersOpened}" @click="filtersOpened = !filtersOpened">
|
||||
|
|
|
@ -289,6 +289,7 @@ en:
|
|||
nav:
|
||||
team_switch_title: "Switch team"
|
||||
search: "Search"
|
||||
clear: "Clear"
|
||||
support: "Support"
|
||||
settings: "Settings"
|
||||
user_profile: "Profile"
|
||||
|
@ -461,6 +462,7 @@ en:
|
|||
report: "Report"
|
||||
step: "Step"
|
||||
result: "Result"
|
||||
folder: "Folder"
|
||||
whole_word: "Match any whole word"
|
||||
whole_phrase: "Match whole phrase"
|
||||
match_case: "Match case sensitive"
|
||||
|
|
Loading…
Reference in a new issue