Commit 40370d0f authored by schneider210's avatar schneider210
Browse files

infobar: replace itemlabel by pagenumber

parent 04f50130
......@@ -5,7 +5,7 @@
<q-icon class="q-pb-sm" size="40px" :name="fasChevronRight" />
<span>{{ cut(manifesttitle) }}</span>
<q-icon class="q-pb-sm" size="40px" :name="fasChevronRight" />
<span>{{ cut(itemurl) }}</span>
<span>Page {{ itemindex + 1 }}</span>
</h1>
</div>
</template>
......@@ -17,11 +17,11 @@ export default {
name: 'Infobar',
props: {
collection: Object,
itemurl: String,
manifests: Array,
},
data() {
return {
itemindex: 0,
sequenceindex: 0,
};
},
......@@ -45,6 +45,14 @@ export default {
this.$root.$on('update-sequence-index', (index) => {
this.sequenceindex = index;
});
this.$root.$on('update-item', (url) => {
this.manifests[this.sequenceindex].sequence.forEach((item, index) => {
if (item.id === url) {
this.itemindex = index;
}
});
});
},
};
</script>
......@@ -56,7 +56,7 @@
</q-item>
<q-item>
<q-item-section>
<q-item-label overline class="text-uppercase">Pagelabel:</q-item-label>
<q-item-label overline class="text-uppercase">Label:</q-item-label>
<q-item-label>{{ }}</q-item-label>
</q-item-section>
</q-item>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment