summaryrefslogtreecommitdiff
path: root/pse-dashboard/src/components/LoadingConditional.vue
diff options
context:
space:
mode:
Diffstat (limited to 'pse-dashboard/src/components/LoadingConditional.vue')
-rw-r--r--pse-dashboard/src/components/LoadingConditional.vue18
1 files changed, 18 insertions, 0 deletions
diff --git a/pse-dashboard/src/components/LoadingConditional.vue b/pse-dashboard/src/components/LoadingConditional.vue
new file mode 100644
index 0000000..2bf233c
--- /dev/null
+++ b/pse-dashboard/src/components/LoadingConditional.vue
@@ -0,0 +1,18 @@
+<script setup>
+defineProps({
+ waitingFor: Boolean
+});
+
+</script>
+<template>
+ <slot v-if="waitingFor" />
+ <div
+ v-else
+ class="text-center"
+ >
+ <div class="spinner-border text-center" />
+ </div>
+</template>
+<style scoped>
+</style>
+