Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beta.ordbok.uib.no
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
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
Margunn.Rauset
beta.ordbok.uib.no
Commits
3ecda17a
Commit
3ecda17a
authored
3 years ago
by
Petr Kalashnikov
Browse files
Options
Downloads
Patches
Plain Diff
Fix search-option in url
parent
2ca700d0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/DictionaryView.vue
+3
-4
3 additions, 4 deletions
src/components/DictionaryView.vue
with
3 additions
and
4 deletions
src/components/DictionaryView.vue
+
3
−
4
View file @
3ecda17a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<main>
<main>
<div
class=
"search_container"
>
<div
class=
"search_container"
>
<div
class=
"lang_select_container"
>
<div
class=
"lang_select_container"
>
<v-radio-group
row
v-model=
"lang"
@
change=
"
force_rerender
"
>
<v-radio-group
row
v-model=
"lang"
@
change=
"
update_lang_form
"
>
<template
v-slot:label
>
<template
v-slot:label
>
<span>
VIS
</span>
<span>
VIS
</span>
</
template
>
</
template
>
...
@@ -201,7 +201,6 @@ export default {
...
@@ -201,7 +201,6 @@ export default {
if
(
event
.
articles
){
if
(
event
.
articles
){
let
source
=
'
/
'
+
this
.
lang
+
'
/w/
'
+
event
.
word
let
source
=
'
/
'
+
this
.
lang
+
'
/w/
'
+
event
.
word
this
.
$router
.
push
(
source
)
this
.
$router
.
push
(
source
)
console
.
log
(
this
.
$router
)
this
.
search_results
=
event
.
articles
.
sort
(
compare_by_hgno
(
decodeURIComponent
(
event
.
word
))).
map
(
a
=>
Object
.
assign
(
a
,
{
source
:
source
}))
this
.
search_results
=
event
.
articles
.
sort
(
compare_by_hgno
(
decodeURIComponent
(
event
.
word
))).
map
(
a
=>
Object
.
assign
(
a
,
{
source
:
source
}))
this
.
article
=
null
this
.
article
=
null
this
.
error
=
null
this
.
error
=
null
...
@@ -215,13 +214,13 @@ export default {
...
@@ -215,13 +214,13 @@ export default {
this
.
$plausible
.
trackEvent
(
'
dropdown selection
'
,
{
props
:
{
query
:
event
.
label
,
match
:
'
<fritekstsøk>
'
}})
this
.
$plausible
.
trackEvent
(
'
dropdown selection
'
,
{
props
:
{
query
:
event
.
label
,
match
:
'
<fritekstsøk>
'
}})
}
}
},
},
force_rerender
:
function
(
event
)
{
update_lang_form
:
function
(
event
)
{
if
(
this
.
event
){
if
(
this
.
event
){
this
.
event
.
articles
=
null
this
.
event
.
articles
=
null
this
.
select_result
(
this
.
event
)
this
.
select_result
(
this
.
event
)
}
}
else
{
else
{
navigate_to_search
(
this
,
this
.
$router
.
history
.
current
.
params
.
word
)
navigate_to_search
(
this
,
this
.
$router
.
history
.
current
.
params
.
word
||
this
.
$router
.
history
.
current
.
params
.
query
)
}
}
},
},
article_link_click
:
function
(
item
)
{
article_link_click
:
function
(
item
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment