Add viewer

This commit is contained in:
brunosimon
2017-08-12 12:02:36 +02:00
parent f7a52d970b
commit 0f33979085
11 changed files with 55 additions and 9 deletions
+8
View File
@@ -5,5 +5,13 @@ export default
props:
{
content: { type: Object }
},
methods:
{
onClick()
{
this.$store.commit('setVersion', this.content)
}
}
}
+3 -3
View File
@@ -1,3 +1,3 @@
<div class="version">
{{ content }}
</div>
<a href="#" class="version" @click.prevent="onClick">
{{ content.date }}
</a>