summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-20 11:12:39 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-03-20 11:12:39 +0100
commita9ece91610c7f33cbc6445b58cfd1a9b43a89a49 (patch)
tree85aa6c7c81573e23f52cb328039a14d902b0acb5 /src/views
parent024560588a7afbfa1fa1dbaf0440beefb695108c (diff)
chore: isolated loadings
Diffstat (limited to 'src/views')
-rw-r--r--src/views/Home.vue6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/views/Home.vue b/src/views/Home.vue
index c1d9420..3ca1445 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -6,7 +6,10 @@
b-col(md="8" sm="12")
h2 List of commits
section#commits
+ .commit(style="padding: 50px" v-if="loading")
+ b-overlay(:show="true" spinner-large)
commit-card(
+ v-else
v-for="i in commits" :key="i.hash" :data="i"
:author="emails[i.author_email]"
:committer="emails[i.committer_email]"
@@ -35,6 +38,9 @@ export default {
emails: function() {
return this.$store.getters.emails;
},
+ loading: function() {
+ return this.$store.getters.loading;
+ }
}
}
</script>