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
Branches
Tags
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="ui text loader"><translate>Loading usage data...</translate></div> <div class="ui text loader"><translate>Loading usage data...</translate></div>
</div> </div>
<div :class="['ui', {'success': progress < 60}, {'yellow': progress >= 60 && progress < 96}, {'error': progress >= 95}, 'progress']"> <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 class="progress">{{ progress }}%</div>
</div> </div>
<div class="label" v-if="quotaStatus"> <div class="label" v-if="quotaStatus">
...@@ -98,7 +98,6 @@ ...@@ -98,7 +98,6 @@
</template> </template>
<script> <script>
import axios from 'axios' import axios from 'axios'
import $ from 'jquery'
import {humanSize} from '@/filters' import {humanSize} from '@/filters'
import {compileTokens} from '@/search' import {compileTokens} from '@/search'
...@@ -145,12 +144,6 @@ export default { ...@@ -145,12 +144,6 @@ export default {
purgeErroredFiles () { purgeErroredFiles () {
this.purge('errored') this.purge('errored')
}, },
updateProgressBar () {
$(this.$el).find('.ui.progress').progress({
percent: this.progress,
showActivity: false
})
}
}, },
computed: { computed: {
progress () { progress () {
...@@ -159,11 +152,6 @@ export default { ...@@ -159,11 +152,6 @@ export default {
} }
return Math.min(parseInt(this.quotaStatus.current * 100 / this.quotaStatus.max), 100) return Math.min(parseInt(this.quotaStatus.current * 100 / this.quotaStatus.max), 100)
} }
},
watch: {
progress () {
this.updateProgressBar()
}
} }
} }
</script> </script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment