-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove SWAL library #7018
Remove SWAL library #7018
Conversation
Hi Laetitia @laemtl and Shen @kongtiaowang - Any ideas here for the integration test failures we're seeing in Travis? |
@christinerogers I investigated a few things with @haoweiqiu and they passed. Closing to see if we get the same result twice. Otherwise, my understanding is that we have to investigate each case individually to discover what's wrong. |
Made a small change and Travis is passing now. |
Find one last occurence that may be problematic in htdocs/js/instrument_controlpanel_swaldeletedata.js:
referenced in smarty/templates/instrumentstatus_controlpanel.tpl. |
Hi @laemtl I have also found this function. It was originally |
@haoweiqiu It is not embedded in a react component so this change will not work. @maltheism, any suggestions? |
Fixed by reactifying the component (htdocs/js/instrument_controlpanel_swaldeletedata.js was migrated in modules/instruments/jsx/ControlpanelDeleteInstrumentData.js) |
a6c7cb2
to
ff5864b
Compare
ff5864b
to
dcfd3bd
Compare
Hi @laemtl - could you comment on how this PR should move forward? |
@haoweiqiu would you be able to rebase this? Thank you - |
@laemtl @ridz1208 @christinerogers guys i think we should probably keep this library until all modules are reactified? sweetalert2 only works if embedded in a react component. i would like to use sweetalert in this PR https://github.com/aces/Loris/pull/7069/files targeting the non-reactified configuration module. how should i move forward? in my mind, i would like to keep our UI consistent across modules |
@driusan to be discussed at the LORIS meeting. |
@maltheism This PR has been updated to address @zaliqarosli comment. It should be ready to go after a rebase. |
@maltheism can you rebase again? I think I merged a different one of your PRs today that added a reference to it somewhere else, I want to be sure the tests still pass.. |
8d0890a
to
37fe69a
Compare
@driusan I think this PR makes my other PR irrelevant. I manually tested the preview button of the help_editor module and it works correctly in this PR as well. |
@maltheism conflicts in .eslintrc.json too |
Brief summary of changes
Try to remove SWAL library.
Link(s) to related issue(s)