suppression de la double confirmation
This commit is contained in:
parent
183f1a5fa8
commit
ec2e17032e
1 changed files with 5 additions and 1 deletions
|
@ -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 } }) => {
|
||||
|
|
Loading…
Reference in a new issue