Browse Source

fix history nav content

Bachir Soussi Chiadmi 3 years ago
parent
commit
5196e7146e
2 changed files with 5 additions and 3 deletions
  1. 1 1
      src/components/Content/HistoryItem.vue
  2. 4 2
      src/components/Content/ResultItem.vue

+ 1 - 1
src/components/Content/HistoryItem.vue

@@ -18,7 +18,7 @@
     </h2>
     <!-- <p v-if="preview" class="preview" v-html="preview" /> -->
     <aside>
-      <span>Pagination</span> | <span>Nbr mots</span>
+      <span>{{ item.pages.prefix }} {{ item.pages.range }}</span> | <span>{{ item.size.quantity }} {{ item.size.unit }}</span>
     </aside>
   </article>
 </template>

+ 4 - 2
src/components/Content/ResultItem.vue

@@ -63,8 +63,10 @@ export default {
       this.addHistoryItem({
         id: this.result.textId,
         textid: this.result.uuid,
-        title: this.result.title[0],
-        editionTitle: this.editionTitle
+        title: this.result.title,
+        editionTitle: this.editionTitle,
+        pages: this.result.pages,
+        size: this.result.size
       })
       this.$router.push({
         name: `editiontext`,