Skip to content
Closed
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions build/media_source/com_media/js/edit-images.es6.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,29 @@ 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() {
const mediaLoader = document.createElement('div');
mediaLoader.id = 'media-edit-progress';
mediaLoader.className = 'media-loader';

mediaLoader.style.top = '0';
mediaLoader.style.zIndex = '1000';

this.baseContainer.insertAdjacentElement('beforebegin', mediaLoader);
}

// @TODO Update the progress bar
// eslint-disable-next-line class-methods-use-this
updateProgressBar(/* position */) { }

// @TODO Remove the progress bar
// eslint-disable-next-line class-methods-use-this
removeProgressBar() { }
removeProgressBar() {
const mediaLoader = document.getElementById('media-edit-progress');
if (mediaLoader) {
mediaLoader.remove();
}
}

/**
* Uploads
Expand Down