Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
e3fd967a
Unverified
Commit
e3fd967a
authored
Jan 29, 2021
by
Guillaume Hanotel
Committed by
GitHub
Jan 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: ability to open search result in new tab with middle-click (#2919)
parent
a7b9be3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
search-results.vue
client/components/common/search-results.vue
+4
-1
No files found.
client/components/common/search-results.vue
View file @
e3fd967a
...
...
@@ -18,7 +18,7 @@
v-subheader.white--text
{{
$t
(
'common:header.searchResultsCount'
,
{
total
:
response
.
totalHits
}
)
}}
v
-
list
.
search
-
results
-
items
.
radius
-
7
.
py
-
0
(
two
-
line
,
dense
)
template
(
v
-
for
=
'(item, idx) of results'
)
v
-
list
-
item
(@
click
=
'goToPage(item)'
,
:
key
=
'item.id'
,
:
class
=
'idx === cursor ? `highlighted` : ``'
)
v
-
list
-
item
(@
click
=
'goToPage(item)'
,
@
click
.
middle
=
"goToPageInNewTab(item)"
,
:
key
=
'item.id'
,
:
class
=
'idx === cursor ? `highlighted` : ``'
)
v
-
list
-
item
-
avatar
(
tile
)
img
(
src
=
'/_assets/svg/icon-selective-highlighting.svg'
)
v
-
list
-
item
-
content
...
...
@@ -136,6 +136,9 @@ export default {
}
,
goToPage
(
item
)
{
window
.
location
.
assign
(
`/${item.locale
}
/${item.path
}
`
)
}
,
goToPageInNewTab
(
item
)
{
window
.
open
(
`/${item.locale
}
/${item.path
}
`
,
'_blank'
)
}
}
,
apollo
:
{
...
...
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