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
53638ded
Commit
53638ded
authored
4 years ago
by
Ole Voldsæter
Browse files
Options
Downloads
Patches
Plain Diff
fikser meta#241
parent
735521fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/App.vue
+7
-1
7 additions, 1 deletion
src/App.vue
with
7 additions
and
1 deletion
src/App.vue
+
7
−
1
View file @
53638ded
...
@@ -102,6 +102,12 @@ function navigate_to_search(self, query) {
...
@@ -102,6 +102,12 @@ function navigate_to_search(self, query) {
axios
.
get
(
self
.
api_pref
+
'
search?q=
'
+
query
)
axios
.
get
(
self
.
api_pref
+
'
search?q=
'
+
query
)
.
then
(
function
(
response
){
.
then
(
function
(
response
){
self
.
search_results
=
response
.
data
self
.
search_results
=
response
.
data
if
(
!
self
.
search_results
.
length
)
{
self
.
article
=
{
lemmas
:
[],
error
:
"
Vi fant ingen resultater for ''
"
+
query
+
"
'. (Søkeforlag kommer i en senere oppatering av Ordbøkene)
"
}
}
self
.
waiting_for_articles
=
false
self
.
waiting_for_articles
=
false
history
.
replaceState
({
article
:
self
.
article
,
search_results
:
self
.
search_results
,
lang
:
self
.
lang
},
''
)
history
.
replaceState
({
article
:
self
.
article
,
search_results
:
self
.
search_results
,
lang
:
self
.
lang
},
''
)
})
})
...
@@ -130,7 +136,7 @@ export default {
...
@@ -130,7 +136,7 @@ export default {
},
},
computed
:
{
computed
:
{
waiting
:
function
()
{
waiting
:
function
()
{
return
this
.
waiting_for_articles
||
this
.
waiting_for_metadata
return
(
this
.
waiting_for_articles
||
this
.
waiting_for_metadata
)
&&
this
.
$route
.
name
!=
'
root
'
},
},
api_pref
:
function
()
{
api_pref
:
function
()
{
return
api_endpoint
+
'
/
'
+
this
.
lang
+
'
/article/
'
return
api_endpoint
+
'
/
'
+
this
.
lang
+
'
/article/
'
...
...
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