update card views

This commit is contained in:
axolotle
2021-06-04 10:42:41 +02:00
parent 248837e8a1
commit b9db79988c
3 changed files with 9 additions and 15 deletions
+4 -10
View File
@@ -15,7 +15,7 @@
</div>
</template>
<template v-else>
{{ text.families[0].name }}
{{ $t('variants.' + text.variant) }}
</template>
</h4>
<slot name="header-extra" :text="text" />
@@ -23,8 +23,8 @@
<div v-if="text.type === 'Textref'">
<div class="text-title font-weight-normal">
<span v-if="text.field_titre_regular" v-html="text.field_titre_regular + ','" />
<span v-html="(text.field_titre_italique || '<em>pas de titre ital</em>') + ','" />
<span v-if="text.preTitle" v-html="text.field_titre_regular + ','" />
<span v-html="(text.title || '<em>pas de titre ital</em>') + ','" />
</div>
<div class="text-edition">
{{ text.edition ? text.edition.name : text.edition }}
@@ -36,12 +36,6 @@
<div class="text-content" v-html="text.content" />
<div v-if="text.type === 'Textref'" class="debug">
<div class="">
'titre_regular': {{ text.field_titre_regular }}
</div>
<div class="">
'titre_italique: {{ text.field_titre_italique }}
</div>
<div class="">
'lien_reference': {{ text.lien_reference }}
</div>
@@ -126,7 +120,7 @@ export default {
created () {
if (this.text !== null) return
this.$store.dispatch('GET_TEXT', { id: this.id }).then((text) => {
this.$store.dispatch('GET_NODE', { id: this.id }).then((text) => {
this.text = text
this.loading = false
})