aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
authorTomasz Grobelny <tomasz@grobelny.net>2018-11-13 18:30:32 +0100
committerTomasz Grobelny <tomasz@grobelny.net>2018-11-24 23:55:17 +0100
commite99340dc4da5f3a86ae32a14ef318b0d8b8f20fd (patch)
tree07a8ed7971c703376d287e649da1e041a7a31552 /apps/files/js/filelist.js
parent296e69fe045363286cacdf37feccfde70d4f2444 (diff)
downloadnextcloud-server-e99340dc4da5f3a86ae32a14ef318b0d8b8f20fd.tar.gz
nextcloud-server-e99340dc4da5f3a86ae32a14ef318b0d8b8f20fd.zip
Move progress bar to separate component
Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index bcecdb697fe..3ee5286a3db 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -379,11 +379,16 @@
});
}
+ this._operationProgressBar = new OCA.Files.OperationProgressBar();
+ this._operationProgressBar.render();
+ this.$el.find('#uploadprogresswrapper').replaceWith(this._operationProgressBar.$el);
+
if (options.enableUpload) {
// TODO: auto-create this element
var $uploadEl = this.$el.find('#file_upload_start');
if ($uploadEl.exists()) {
this._uploader = new OC.Uploader($uploadEl, {
+ progressBar: this._operationProgressBar,
fileList: this,
filesClient: this.filesClient,
dropZone: $('#content'),