blob: 721a5fd7145289b6966dea78df605609c6fbbabd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<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>
|