Parcourir la source

fix text rebonds missing data

axolotle il y a 2 ans
Parent
commit
e83df4d921

+ 1 - 1
src/components/nodes/NodeViewBody.vue

@@ -29,7 +29,7 @@
               v-for="link in note.links" :key="link.id"
               :node="link.type === 'prod' && link.parents && link.parents.length ? link.parents[0] : link"
               link
-              @open-node="onFootnoteLinkClick(link, 'note-' + note.number)"
+              @open-node="onFootnoteLinkClick(link, `note-${node.id}-${note.number}`)"
             >
               <dot-button
                 :variant="link.variant"

+ 8 - 0
src/components/nodes/NodeViewFooter.vue

@@ -103,6 +103,14 @@ export default {
     onOpenSelf () {
       this.$parent.$emit('open-node', getRelation(this.node))
     }
+  },
+
+  created () {
+    if (this.mode === 'view' && this.node.siblings) {
+      // Query partial data for sibling nodes
+      const ids = this.node.siblings.map(sibling => sibling.id)
+      this.$store.dispatch('GET_NODES', { ids, dataLevel: 'initial' })
+    }
   }
 }
 </script>

+ 1 - 1
src/pages/_partials/NodesHistory.vue

@@ -29,7 +29,7 @@
         </div>
         <node-view-title
           :node="node.type === 'ref' ? node : node.parents[0]"
-          link edition block
+          edition block
           tag="div"
         />
       </b-dropdown-item-button>