mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 19:53:19 +08:00
Merge pull request #7556 from aignatov-bio/ai-sci-10712-small-fixes-for-global-search
Small fixes for global search [SCI-10712]
This commit is contained in:
commit
5d2a6074bf
3 changed files with 15 additions and 11 deletions
|
@ -40,7 +40,6 @@ class ProjectsController < ApplicationController
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
def inventory_assigning_project_filter
|
||||
viewable_experiments = Experiment.viewable_by_user(current_user, current_team)
|
||||
assignable_my_modules = MyModule.repository_row_assignable_by_user(current_user)
|
||||
|
@ -260,7 +259,6 @@ class ProjectsController < ApplicationController
|
|||
render json: { data: user_roles_collection(Project.new).map(&:reverse) }
|
||||
end
|
||||
|
||||
|
||||
def actions_toolbar
|
||||
render json: {
|
||||
actions:
|
||||
|
|
|
@ -25,14 +25,17 @@
|
|||
class="mb-6"
|
||||
@change="(v) => {this.updatedAt = v}"
|
||||
></DateFilter>
|
||||
<div class="sci-label mb-2">{{ i18n.t('search.filters.by_team') }}</div>
|
||||
<SelectDropdown :options="teams"
|
||||
class="mb-6"
|
||||
:with-checkboxes="true"
|
||||
:clearable="true"
|
||||
:multiple="true"
|
||||
:value="selectedTeams"
|
||||
@change="(v) => {selectedTeams = v}" />
|
||||
<template v-if="teams.length > 1">
|
||||
<div class="sci-label mb-2">{{ i18n.t('search.filters.by_team') }}</div>
|
||||
<SelectDropdown :options="teams"
|
||||
class="mb-6"
|
||||
:with-checkboxes="true"
|
||||
:clearable="true"
|
||||
:multiple="true"
|
||||
:value="selectedTeams"
|
||||
:placeholder="i18n.t('search.filters.by_team_placeholder')"
|
||||
@change="(v) => {selectedTeams = v}" />
|
||||
</template>
|
||||
<div class="sci-label mb-2 flex items-center gap-2">
|
||||
{{ i18n.t('search.filters.by_user') }}
|
||||
<i class="sn-icon sn-icon-info" :title="i18n.t('search.filters.by_user_info')"></i>
|
||||
|
@ -45,6 +48,7 @@
|
|||
:clearable="true"
|
||||
:with-checkboxes="true"
|
||||
:multiple="true"
|
||||
:placeholder="i18n.t('search.filters.by_user_placeholder')"
|
||||
@change="(v) => {selectedUsers = v}" />
|
||||
<div class="flex items-center gap-2">
|
||||
<div class="sci-checkbox-container">
|
||||
|
|
|
@ -474,7 +474,9 @@ en:
|
|||
by_created_date: "Filter by created date"
|
||||
by_updated_date: "Filter by updated date"
|
||||
by_team: "Filter by team"
|
||||
by_team_placeholder: "Select team"
|
||||
by_user: "Filter by user"
|
||||
by_user_placeholder: "Filter by user"
|
||||
by_user_info: "The 'Filter by user' option will refine search results based on records where the selected user is the creator, modifier, or is assigned to the entry."
|
||||
include_archived: "Include Archived objects"
|
||||
clear: "Clear filters"
|
||||
|
@ -494,7 +496,7 @@ en:
|
|||
index:
|
||||
head_title: "Search"
|
||||
page_title: "Search"
|
||||
results_title_html: "Search Results for '%{query}'"
|
||||
results_title_html: "Search results for '%{query}'"
|
||||
experiments: "Experiments"
|
||||
tasks: "Tasks"
|
||||
task_results: "Task results"
|
||||
|
|
Loading…
Reference in a new issue