Fixed progress bar not accurate

environments/review-docs-funkw-78jnxn/deployments/34
Eliot Berriot 2018-09-28 15:49:34 +02:00
rodzic a86b6cdd62
commit f595b852ca
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DD6965E2476E5C27
1 zmienionych plików z 1 dodań i 13 usunięć

Wyświetl plik

@ -5,7 +5,7 @@
<div class="ui text loader"><translate>Loading usage data...</translate></div>
</div>
<div :class="['ui', {'success': progress < 60}, {'yellow': progress >= 60 && progress < 96}, {'error': progress >= 95}, 'progress']">
<div class="bar">
<div class="bar" :style="{width: `${progress}%`}">
<div class="progress">{{ progress }}%</div>
</div>
<div class="label" v-if="quotaStatus">
@ -98,7 +98,6 @@
</template>
<script>
import axios from 'axios'
import $ from 'jquery'
import {humanSize} from '@/filters'
import {compileTokens} from '@/search'
@ -145,12 +144,6 @@ export default {
purgeErroredFiles () {
this.purge('errored')
},
updateProgressBar () {
$(this.$el).find('.ui.progress').progress({
percent: this.progress,
showActivity: false
})
}
},
computed: {
progress () {
@ -159,11 +152,6 @@ export default {
}
return Math.min(parseInt(this.quotaStatus.current * 100 / this.quotaStatus.max), 100)
}
},
watch: {
progress () {
this.updateProgressBar()
}
}
}
</script>