Display progress during file upload

This commit is contained in:
Eliot Berriot 2019-01-26 19:05:23 +01:00
parent a28f4ca5f0
commit 3de9ae6936
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1 @@
Display progress during file upload

View File

@ -102,6 +102,7 @@
</span>
<span v-else-if="file.active" class="ui yellow label">
<translate key="2">Uploading</translate>
({{ parseInt(file.progress) }}%)
</span>
<template v-else>
<span class="ui label"><translate key="3">Pending</translate></span>
@ -145,7 +146,7 @@ export default {
files: [],
needsRefresh: false,
currentTab: "summary",
uploadUrl: "/api/v1/uploads/",
uploadUrl: this.$store.getters['instance/absoluteUrl']("/api/v1/uploads/"),
importReference,
supportedExtensions: ["flac", "ogg", "mp3", "opus"],
uploads: {