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

fikset absurd komplisert kode for artikkel-overskrifter

parent e6df1237
No related branches found
No related tags found
No related merge requests found
<!-- eslint-disable --> <!-- eslint-disable -->
<template> <template>
<div> <div>
<h1 class="article_header" v-for="(lemma, index) in lemmas" :key="index"> <h1 class="article_header">{{header_text}}</h1>
{{lemma.lemma}}{{index+1 < lemmas.length ? ',' : ''}} </h1>
{{group_list}} {{group_list}}
<details title="Klikk for å se bøyninger" @toggle="toggle()"> <details title="Klikk for å se bøyninger" @toggle="toggle()">
<summary>{{dictionary == 'bob' ? 'Bøyning' : 'Bøying'}}</summary> <summary>{{dictionary == 'bob' ? 'Bøyning' : 'Bøying'}}</summary>
...@@ -44,6 +43,9 @@ export default { ...@@ -44,6 +43,9 @@ export default {
article_id: Number article_id: Number
}, },
computed: { computed: {
header_text: function() {
return this.lemmas.map(lemma => lemma.lemma).join(', ')
},
dict_label: function() { dict_label: function() {
return { return {
'bob': 'BOKMÅL', 'bob': 'BOKMÅL',
......
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