diff options
| author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-11 00:09:17 +0000 |
|---|---|---|
| committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-11 00:09:17 +0000 |
| commit | aa0e3dcce3143ef4c3d8a481a216bf28ae31a3e3 (patch) | |
| tree | 8a39ef76ddc367e7747e76621ee3ee072b0ea066 /spec/frontend/confirm_modal_spec.js | |
| parent | 6ae4485274362bf656fae249a1409266a211d255 (diff) | |
| download | gitlab-ce-aa0e3dcce3143ef4c3d8a481a216bf28ae31a3e3.tar.gz | |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/confirm_modal_spec.js')
| -rw-r--r-- | spec/frontend/confirm_modal_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/confirm_modal_spec.js b/spec/frontend/confirm_modal_spec.js index 4224fb6be2a..53991349ee5 100644 --- a/spec/frontend/confirm_modal_spec.js +++ b/spec/frontend/confirm_modal_spec.js @@ -31,9 +31,9 @@ describe('ConfirmModal', () => { buttons.forEach((x) => { const button = document.createElement('button'); button.setAttribute('class', 'js-confirm-modal-button'); - button.dataset.path = x.path; - button.dataset.method = x.method; - button.dataset.modalAttributes = JSON.stringify(x.modalAttributes); + button.setAttribute('data-path', x.path); + button.setAttribute('data-method', x.method); + button.setAttribute('data-modal-attributes', JSON.stringify(x.modalAttributes)); button.innerHTML = 'Action'; buttonContainer.appendChild(button); }); |
