summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-19 15:51:04 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-03-19 15:51:04 +0100
commit4410f2e46cbf961f2100038b53426bd07aebc4e9 (patch)
tree59bb661b4b15d04555b434db41a4cb9560da0cdc /src/views
parenta686db800f50db4f6585fcdf1110873f577bfaeb (diff)
feat: get all commits
Diffstat (limited to 'src/views')
-rw-r--r--src/views/Home.vue10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/views/Home.vue b/src/views/Home.vue
index 55c3c08..28da86b 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -1,6 +1,8 @@
<template lang="pug">
main
header-blue
+ b-container
+ h2 List of commits
</template>
<script>
@@ -10,6 +12,14 @@ export default {
name: "Home",
components: {
'header-blue': HeaderBlue,
+ },
+ mounted() {
+ this.$store.dispatch('get_commits');
+ },
+ computed: {
+ commits: () => {
+ return this.$store.get.commits;
+ }
}
}
</script>