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

fjernet "substantiv" når det er en annen ordklasse, fjernet bøyningsknapp når det ikke er ordklasse

parent 35efd8d1
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div> <div>
<h1 class="article_header">{{header_text}}</h1> <h1 class="article_header">{{header_text}}</h1>
{{group_list}} {{group_list}}
<details title="Klikk for å se bøyninger" @toggle="toggle()"> <details title="Klikk for å se bøyninger" @toggle="toggle()" v-if="group_list">
<summary>Bøying</summary> <summary>Bøying</summary>
<div class="inflection"> <div class="inflection">
<div v-for="(lemma, index) in inflection_groups_by_lemma" :key="index"> <div v-for="(lemma, index) in inflection_groups_by_lemma" :key="index">
......
...@@ -59,8 +59,8 @@ var group_list = function(grps, dictionary) { ...@@ -59,8 +59,8 @@ var group_list = function(grps, dictionary) {
} }
}) })
}) })
if (noun_grp_collection) { if (noun_grp_collection.size) {
let noun_grp_text = 'substantiv, ' let noun_grp_text = 'substantiv '
if (noun_grp_collection.size == 3) { if (noun_grp_collection.size == 3) {
noun_grp_text += mapping[dictionary]['Masc'] + ', ' + mapping[dictionary]['Fem'] + ' eller ' + mapping[dictionary]['Neuter'] noun_grp_text += mapping[dictionary]['Masc'] + ', ' + mapping[dictionary]['Fem'] + ' eller ' + mapping[dictionary]['Neuter']
} else { } else {
......
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