diff --git a/administrator/components/com_media/tmpl/file/default.php b/administrator/components/com_media/tmpl/file/default.php index a1807a44fc4d6..0875c92f873ed 100644 --- a/administrator/components/com_media/tmpl/file/default.php +++ b/administrator/components/com_media/tmpl/file/default.php @@ -62,6 +62,9 @@ getDocument()->getToolbar('toolbar')->render(); ?> +
+
+
getFieldsets(); ?> diff --git a/build/media_source/com_media/js/edit-images.es6.js b/build/media_source/com_media/js/edit-images.es6.js index f621b53db64e1..e612cee7de389 100644 --- a/build/media_source/com_media/js/edit-images.es6.js +++ b/build/media_source/com_media/js/edit-images.es6.js @@ -155,17 +155,26 @@ class Edit { // eslint-disable-next-line class-methods-use-this Redo() { } - // @TODO Create the progress bar - // eslint-disable-next-line class-methods-use-this - createProgressBar() { } + createProgressBar() { + this.progress = document.getElementById('progress'); + this.progressBar = document.querySelector('.progress-bar'); + this.progress.classList.remove('visually-hidden'); + } - // @TODO Update the progress bar - // eslint-disable-next-line class-methods-use-this - updateProgressBar(/* position */) { } + updateProgressBar(position) { + if (this.progressBar) { + this.progressBar.style.width = `${position}%`; + this.progressBar.setAttribute('aria-valuenow', position); + } + } - // @TODO Remove the progress bar - // eslint-disable-next-line class-methods-use-this - removeProgressBar() { } + removeProgressBar() { + if (this.progress && this.progressBar) { + this.progress.classList.add('visually-hidden'); + this.progressBar.style.width = '0'; + this.progressBar.setAttribute('aria-valuenow', '0'); + } + } /** * Uploads