Skip to content
Snippets Groups Projects
Verified Commit f595b852 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed progress bar not accurate

parent a86b6cdd
No related branches found
No related tags found
No related merge requests found
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment