diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-03-19 16:22:41 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-03-19 16:22:41 +0100 |
commit | 0d6bd4aefc4e651be3f2fff15043d598e852df54 (patch) | |
tree | 23703efd4a602ef8fe3c9236e84642d6843a4ba9 /src/components/HeaderBlue.vue | |
parent | d383bd08f0266406d4b0c9eb68c76e62c9d4a460 (diff) |
feat: add loading
Diffstat (limited to 'src/components/HeaderBlue.vue')
-rw-r--r-- | src/components/HeaderBlue.vue | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/components/HeaderBlue.vue b/src/components/HeaderBlue.vue new file mode 100644 index 0000000..d4ffa9f --- /dev/null +++ b/src/components/HeaderBlue.vue @@ -0,0 +1,19 @@ +<template lang="pug"> + header(:class="{active: loading}") + #big-loading(v-if="loading") + b-overlay(:show="true" spinner-large) + b-container + h1 + a(href="/" rel="home") Gico +</template> + +<script> +export default { + name: "HeaderBlue", + computed: { + loading: function() { + return this.$store.getters.loading; + }, + } +} +</script> |