Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scc-net
netvs
netvs-core
Commits
6bb9491f
Commit
6bb9491f
authored
Oct 12, 2020
by
gj4210
👽
Browse files
UPD: Ctrl in GlobalSearch opens in new tab
parent
c9ced335
Pipeline
#112394
passed with stages
in 11 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/GlobalSearch.vue
View file @
6bb9491f
...
...
@@ -165,7 +165,11 @@ export default {
},
suggestionClicked
(
e
,
suggestion
)
{
if
(
suggestion
.
type
===
'
page
'
&&
this
.
$router
.
currentRoute
!==
suggestion
.
url
)
{
this
.
$router
.
push
(
suggestion
.
url
)
if
(
e
.
ctrlKey
)
{
window
.
open
(
this
.
$router
.
resolve
(
suggestion
.
url
).
href
,
'
_blank
'
)
}
else
{
this
.
$router
.
push
(
suggestion
.
url
)
}
}
if
(
suggestion
.
type
===
'
test
'
)
{
window
.
console
.
log
(
'
Clicked test suggestion:
'
+
suggestion
.
name
[
0
]
+
suggestion
.
name
[
1
]
+
suggestion
.
name
[
2
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment