Skip to content
Snippets Groups Projects
Commit 345178bf authored by Henrik Askjer's avatar Henrik Askjer
Browse files

fix missing secondary header in collapsed article

parent 140e52d5
No related branches found
Tags release_2022-03-01_1
No related merge requests found
......@@ -7,10 +7,10 @@
@click.native="$parent.details_click($parent.link_to_self)"
v-bind:class="{'long_lemma': long_lemma}"
class="article_header">
<HeaderTitle :lemma_groups="lemma_groups"/>
<HeaderTitle :lemma_groups="lemma_groups" :secondary_header_text="secondary_header_text"/>
</router-link>
<span v-else>
<HeaderTitle :lemma_groups="lemma_groups"/>
<HeaderTitle :lemma_groups="lemma_groups" :secondary_header_text="secondary_header_text"/>
</span>
<InflectionButton :lemmas="$parent.article.lemmas" :dictionary="dictionary" :article_id="$parent.article.article_id"/>
......
......@@ -16,7 +16,7 @@
</span>
</span>
</h1>
<h1 v-if="$parent.secondary_header_text">{{$parent.secondary_header_text}}</h1>
<h1 v-if="secondary_header_text">{{secondary_header_text}}</h1>
<span class="subheader">
<span class="header_group_list"
v-if="lemma_group.description">{{lemma_group.description}}</span>
......@@ -36,7 +36,8 @@ import helpers from '../utils/helpers.js'
export default {
name: 'HeaderTitle',
props: {
lemma_groups: Array
lemma_groups: Array,
secondary_header_text: String
},
methods: {
roman_hgno: helpers.roman_hgno,
......
<template>
<div v-if="split_inf">kløyvd infinitiv: <em>-a</em>
<div class = "split-inf" v-if="split_inf">kløyvd infinitiv: <em>-a</em>
<v-menu tile
v-model="menu"
offset-x max-width="200px">
......@@ -46,3 +46,8 @@ export default {
}
</script>
<style>
.split-inf {
padding-top: 10px;
}
</style>
\ No newline at end of file
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