summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-19 16:22:41 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-03-19 16:22:41 +0100
commit0d6bd4aefc4e651be3f2fff15043d598e852df54 (patch)
tree23703efd4a602ef8fe3c9236e84642d6843a4ba9 /src/components
parentd383bd08f0266406d4b0c9eb68c76e62c9d4a460 (diff)
feat: add loading
Diffstat (limited to 'src/components')
-rw-r--r--src/components/HeaderBlue.vue19
-rw-r--r--src/components/design/HeaderBlue.vue12
2 files changed, 19 insertions, 12 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>
diff --git a/src/components/design/HeaderBlue.vue b/src/components/design/HeaderBlue.vue
deleted file mode 100644
index fd6d731..0000000
--- a/src/components/design/HeaderBlue.vue
+++ /dev/null
@@ -1,12 +0,0 @@
-<template lang="pug">
- header
- b-container
- h1
- a(href="/" rel="home") Gico
-</template>
-
-<script>
-export default {
- name: "HeaderBlue",
-}
-</script>