Explorar o código

add link to NodeView

Axolotle %!s(int64=2) %!d(string=hai) anos
pai
achega
eb3828a7f8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/components/nodes/NodeViewTitle.vue

+ 2 - 1
src/components/nodes/NodeViewTitle.vue

@@ -12,7 +12,8 @@
       <slot name="default" />
       <span>
         <strong>{{ toCommaList(node.authors) }}</strong>,
-        <button-url v-if="url && node.piece" :link="node.piece" />
+        <button-url v-if="url && node.piece && node.piece.url" :link="node.piece" />
+        <button-url v-if="url && node.link && node.link.url" :link="node.link" />
       </span>
       <span>
         <span v-if="node.preTitle" v-html="' ' + trim(node.preTitle) + ','" />