Commit af35d64f authored by Henrik Askjer's avatar Henrik Askjer
Browse files

fix undefined variable

parent 6f456dc4
......@@ -31,7 +31,7 @@
--><span v-for="(item,index) in similar"
:key="index"><!--
--><router-link :to="generate_path({q: queryString+'|'+item[0]})"
@click.native="similar_link()">{{item[0]}}</router-link><!--
@click.native="similar_link(item[0])">{{item[0]}}</router-link><!--
-->{{index == similar.length-1? '.' : ', '}}
</span>
</div>
......@@ -42,7 +42,7 @@
--><span v-for="(item,index) in similar"
:key="index"><!--
--><router-link :to="generate_path({q: queryString+'|'+item[0]})"
@click.native="similar_link()">{{item[0]}}</router-link><!--
@click.native="similar_link(item[0])">{{item[0]}}</router-link><!--
-->{{index == similar.length-1? '.' : ', '}}
</span>
</div>
......@@ -108,7 +108,7 @@
<template v-for="(item, index) in similar">
<v-list-item :key="index">
<router-link :to="generate_path({q: item[0]})"
@click.native="similar_link()">{{item[0]}}</router-link>
@click.native="similar_link(item[0])">{{item[0]}}</router-link>
<span class="dict-parentheses"
v-if="lang=='bm,nn'">&nbsp;({{["bokmål","nynorsk","bokmål, nynorsk"][item[1]-1]}})</span>
</v-list-item>
......@@ -619,8 +619,8 @@ export default {
this.event = null
navigate_to_query(this, word)
},
similar_link: function () {
this.$plausible.trackEvent('similar link', {props: {lang: this.previous.params.lang, from: this.previous.query.q, to: word}})
similar_link: function (word) {
this.$plausible.trackEvent('similar link', {props: {lang: this.previous.params.lang, from: this.previous.query.q, to: this.word}})
this.event = null
navigate_to_query(this, this.queryString)
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment