diff options
author | Tomasz Grobelny <tomasz@grobelny.net> | 2018-11-13 18:30:32 +0100 |
---|---|---|
committer | Tomasz Grobelny <tomasz@grobelny.net> | 2018-11-24 23:55:17 +0100 |
commit | e99340dc4da5f3a86ae32a14ef318b0d8b8f20fd (patch) | |
tree | 07a8ed7971c703376d287e649da1e041a7a31552 /apps/files/js/filelist.js | |
parent | 296e69fe045363286cacdf37feccfde70d4f2444 (diff) | |
download | nextcloud-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.js | 5 |
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'), |