mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 19:53:19 +08:00
Small fixes for global search [SCI-10709]
This commit is contained in:
parent
284d266cb3
commit
fc73fc71f8
2 changed files with 6 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
|||
<div class="sci--navigation--top-menu-search left-icon sci-input-container-v2" :class="{'disabled' : !currentTeam}" :title="i18n.t('nav.search')">
|
||||
<input ref="searchField" type="text" class="!pr-20" v-model="searchQuery" @keydown="focusHistoryItem"
|
||||
:class="{'active': flyoutOpened}"
|
||||
@keydown.escape="closeFlyout"
|
||||
@focus="openHistory" :placeholder="i18n.t('nav.search')" @keydown.enter="saveQuery"/>
|
||||
<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">
|
||||
|
@ -326,6 +327,9 @@ export default {
|
|||
}
|
||||
this.$refs.historyItems[this.focusedHistoryItem].focus();
|
||||
}
|
||||
},
|
||||
closeFlyout() {
|
||||
this.$refs.container.isOpen = false;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -288,7 +288,7 @@ en:
|
|||
notice: "You need to enable JavaScript to run this app."
|
||||
nav:
|
||||
team_switch_title: "Switch team"
|
||||
search: "Search"
|
||||
search: "Search in SciNote"
|
||||
clear: "Clear"
|
||||
support: "Support"
|
||||
settings: "Settings"
|
||||
|
@ -446,7 +446,7 @@ en:
|
|||
quick_search:
|
||||
experiments: "Experiments"
|
||||
tasks: "Tasks"
|
||||
results: "Results"
|
||||
results: "Task results"
|
||||
inventory_items: "Inventory items"
|
||||
all_results: "All search results for \"%{query}\""
|
||||
empty_title: "No quick search results found in %{team}."
|
||||
|
|
Loading…
Reference in a new issue