mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-10 16:31:22 +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 class="sn-icon sn-icon-search"></i>
|
||||||
<i v-if="localQuery.length > 0"
|
<i v-if="localQuery.length > 0"
|
||||||
class="sn-icon cursor-pointer sn-icon-close absolute right-0 -top-0.5"
|
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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:flyout >
|
<template v-slot:flyout >
|
||||||
|
|
@ -103,6 +103,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
/* global HelperModule */
|
||||||
import FoldersComponent from './groups/folders.vue';
|
import FoldersComponent from './groups/folders.vue';
|
||||||
import ProjectsComponent from './groups/projects.vue';
|
import ProjectsComponent from './groups/projects.vue';
|
||||||
import ExperimentsComponent from './groups/experiments.vue';
|
import ExperimentsComponent from './groups/experiments.vue';
|
||||||
|
|
@ -266,6 +267,8 @@ export default {
|
||||||
|
|
||||||
if (event.target.value.length < 2) {
|
if (event.target.value.length < 2) {
|
||||||
this.invalidQuery = true;
|
this.invalidQuery = true;
|
||||||
|
const minLength = 2;
|
||||||
|
HelperModule.flashAlertMsg(this.i18n.t('general.query.length_too_short', { min_length: minLength }), 'danger');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
<i class="sn-icon sn-icon-search"></i>
|
<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 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()">
|
<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>
|
||||||
<div class="btn btn-light icon-btn btn-xs" :title="i18n.t('search.quick_search.search_options')"
|
<div class="btn btn-light icon-btn btn-xs" :title="i18n.t('search.quick_search.search_options')"
|
||||||
:class="{'active': filtersOpened}" @click="filtersOpened = !filtersOpened">
|
:class="{'active': filtersOpened}" @click="filtersOpened = !filtersOpened">
|
||||||
|
|
|
||||||
|
|
@ -289,6 +289,7 @@ en:
|
||||||
nav:
|
nav:
|
||||||
team_switch_title: "Switch team"
|
team_switch_title: "Switch team"
|
||||||
search: "Search"
|
search: "Search"
|
||||||
|
clear: "Clear"
|
||||||
support: "Support"
|
support: "Support"
|
||||||
settings: "Settings"
|
settings: "Settings"
|
||||||
user_profile: "Profile"
|
user_profile: "Profile"
|
||||||
|
|
@ -461,6 +462,7 @@ en:
|
||||||
report: "Report"
|
report: "Report"
|
||||||
step: "Step"
|
step: "Step"
|
||||||
result: "Result"
|
result: "Result"
|
||||||
|
folder: "Folder"
|
||||||
whole_word: "Match any whole word"
|
whole_word: "Match any whole word"
|
||||||
whole_phrase: "Match whole phrase"
|
whole_phrase: "Match whole phrase"
|
||||||
match_case: "Match case sensitive"
|
match_case: "Match case sensitive"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue