Skip to content
Snippets Groups Projects
Commit e5ad2339 authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

re meta#233 logger under navnet "open inflection"

parent 84db4fd7
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
<div>
<h1 class="article_header" v-for="(lemma, index) in lemmas" :key="index">
{{lemma.lemma}}{{index+1 < lemmas.length ? ',' : ''}} </h1>
<details title="Klikk for å se bøyninger">
<details title="Klikk for å se bøyninger" @toggle="toggle()">
<summary>{{group_list}}</summary>
<div class="inflection">
<div v-for="(lemma, index) in inflection_groups_by_lemma" :key="index">
......@@ -70,8 +70,22 @@ export default {
NOUN_reg_fem,
VERB,
VERB_sPass
},
data: function() {
return {
inflect_reported: false
}
},
methods: {
toggle: function() {
if (! this.inflect_reported) {
this.$plausible.trackEvent('open inflection')
}
this.inflect_reported = true
}
}
}
</script>
<style >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment