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
Hide the abort button in a network subworkflow during installation #1195
Conversation
As the inst_lan client is called from a sub-workflow, and abort is only possible in the main workflow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we sent this patch for SLE-15-SP3?
The main problem I see is when it is called from the main workflow: https://github.com/yast/skelcd-control-leanos/blob/master/control/control.leanos.xml#L565 Currently we are hiding it always during an installation or update. BTW: I will try to check it deeper or later |
Instead of hiding the abort button unconditionally, it does it according to `disable_abort_button` inst argument. That's specially useful for avoiding not having such button when the client is used in the main installation workflow, keeping the installation UI consistence.
Ey @teclator Thanks a lot for your chat and hints today afternoon. I have updated the PR to use the new Please, have a look again when you have time. |
Co-authored-by: Knut Alejandro Anderssen González <kanderssen@suse.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
✔️ Public Jenkins job #238 successfully finished |
Problem
As stated in the second comment, this happens
Solution
To use an installation argument (
hide_abort_button
) for setting when the abort button should be hide, since hiding it always during installation will break the installation UI consistence when the client is used in the main workflow.Notes
As it can be seen in the proposed changes, the call to
Yast::Wizard.HideAbortButton
has been placed in src/include/network/lan/complex.rb#MainDialog
method, since trying to place it somewhere before in the backtrace does not work (it worked forYast::Wizard::DisableAbortButton
but not for hiding it, which actually worked partially being hide and displayed again 😕).For the record, the full path is
src/lib/network/clients/inst_lan.rb -> src/include/network/lan/wizards.rb#LanSequences -> src/include/network/lan/wizards.rb#MainSequence -> src/include/network/lan/complex.rb#MainDialog
Tests
yupdate
to apply changes in a SLE 15-SP3 Build 168.1Screenshots
Related Trello card (internal link): https://trello.com/c/6M4weND5