suppression de la double confirmation

This commit is contained in:
clemkeirua 2019-03-06 11:40:09 +01:00
parent 183f1a5fa8
commit ec2e17032e

View file

@ -10,8 +10,12 @@ addEventListener(INITIALIZE_EVENT, ({ target, detail: { id, file } }) => {
ProgressBar.init(target, id, file);
});
addEventListener(START_EVENT, ({ detail: { id } }) => {
addEventListener(START_EVENT, ({ target, detail: { id } }) => {
ProgressBar.start(id);
const button = target.form.querySelector('button.primary');
if (button) {
delete button.dataset.confirm;
}
});
addEventListener(PROGRESS_EVENT, ({ detail: { id, progress } }) => {