Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UI
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
frontend
apps
UI
Merge requests
!35
Fix: Only enable search if something is entered (coscine/issues#2015)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Fix: Only enable search if something is entered (coscine/issues#2015)
Hotfix/1917-PublicFilesVisibility
into
dev
Overview
1
Commits
1
Pipelines
1
Changes
1
Closed
Benedikt Heinrichs
requested to merge
Hotfix/1917-PublicFilesVisibility
into
dev
3 years ago
Overview
1
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
7be185d9
1 commit,
3 years ago
1 file
+
6
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/components/Navbar.vue
+
6
−
3
Options
@@ -22,7 +22,7 @@
<b-nav-form
@
submit.stop.prevent=
"triggerSearch"
>
<b-input-group
size=
"sm"
style=
"width: 25rem"
>
<template
#prepend
>
<b-button
@
click=
"triggerSearch"
>
<b-button
:disabled=
"!searchTerm"
@
click=
"triggerSearch"
>
<b-icon
icon=
"search"
/>
</b-button>
</
template
>
@@ -159,8 +159,11 @@ export default defineComponent({
this
.
loginStore
.
logout
();
}
,
triggerSearch
()
{
// attach search query, resulting in "/search?q=<searchTerm>"
this
.
$router
.
push
({
name
:
"
search
"
,
query
:
{
q
:
this
.
searchTerm
}
}
);
// If searchTerm is not empty
if
(
this
.
searchTerm
)
{
// attach search query, resulting in "/search?q=<searchTerm>"
this
.
$router
.
push
({
name
:
"
search
"
,
query
:
{
q
:
this
.
searchTerm
}
}
);
}
}
,
toggleSidebar
()
{
this
.
mainStore
.
sidebarActive
=
!
this
.
mainStore
.
sidebarActive
;
Loading