summaryrefslogblamecommitdiff
path: root/iridescence/src/components/BusyBar.vue
blob: 721a5fd7145289b6966dea78df605609c6fbbabd (plain) (tree)
1
2
3
4
5
6
7






                                          






                                          








                                      


                                          



         
<template>
  <div id="busyBar">
    <progress
      class="progress is-small is-primary"
      max="100"
      v-if="isBusy"
    ></progress>
    <progress
      class="progress is-small is-primary"
      v-bind:value="progress"
      max="100"
      v-if="progress < 100"
      >{{ progress }}%</progress
    >
  </div>
</template>

<script>
export default {
  name: "BusyBar",
  computed: {
    isBusy() {
      return this.$store.getters.busy;
    },
    progress() {
      return this.$store.getters.progress;
    }
  }
};
</script>