use textref header for textprod with title
This commit is contained in:
@@ -12,6 +12,16 @@ fragment NodeInitial on MapItemInterface {
|
||||
}
|
||||
|
||||
... on Textprod {
|
||||
preTitle: field_titre_regular
|
||||
italTitle: field_titre_italique
|
||||
|
||||
authors: auteurs {
|
||||
id
|
||||
name
|
||||
first_name
|
||||
last_name
|
||||
}
|
||||
|
||||
parents: text_de_depart {
|
||||
id
|
||||
variant: familles {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<div v-if="!loading" class="node-view-wrapper" :id="`node-${mode}-${node.id}`">
|
||||
<component
|
||||
ref="header"
|
||||
:is="'node-view-header-' + nodeType"
|
||||
:is="'node-view-header-' + (nodeType === 'prod' && (node.preTitle || node.italTitle) ? 'ref' : nodeType)"
|
||||
v-bind="{ node, mode, showOrigin }"
|
||||
class="node-view-header"
|
||||
:class="{ scrolling: scrollValue }"
|
||||
@@ -108,7 +108,7 @@ export default {
|
||||
}
|
||||
}, 50)
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
mounted () {
|
||||
|
||||
@@ -47,7 +47,7 @@ export default {
|
||||
},
|
||||
|
||||
computed: {
|
||||
...mapGetters(['visited']),
|
||||
...mapGetters(['visited'])
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
active hovered
|
||||
@click="onNodeClick(activeNode.data)"
|
||||
>
|
||||
<template v-if="activeNode.data.type === 'prod'">
|
||||
<template v-if="activeNode.data.type === 'prod' && !(activeNode.data.preTitle || activeNode.data.italTitle)">
|
||||
{{ $t('variants.' + activeNode.data.variant) }}<br>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user