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