Skip to content
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

dialog-user: add flag for dialog reconfigure #440

Merged

Conversation

mzazrivec
Copy link
Contributor

In case a dialog is being reconfigured, we need to honor the non-reconfigurable field flag and disable the respective input field.

@himdel

https://bugzilla.redhat.com/show_bug.cgi?id=1837410

@@ -49,6 +50,7 @@ export class DialogFieldController {
public setup() {
this.clonedDialogField = _.cloneDeep(this.field);
this.dialogField = this.service.setupField(this.field);
this.dialogField.disabled = this.reconfigureMode && !this.dialogField.reconfigurable;
Copy link
Contributor

@himdel himdel May 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can a field be disabled from automate?

I think this bit should only set disabled=true, but not overwrite with false if already present, if ^.

Otherwise LGTM :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed (as discussed privately).

@mzazrivec mzazrivec force-pushed the add_support_for_dialog_reconfigure branch from 0bc9a0a to f23d891 Compare May 26, 2020 12:01
@miq-bot
Copy link
Member

miq-bot commented May 26, 2020

Checked commit mzazrivec@f23d891 with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.28.0, and yamllint
0 files checked, 0 offenses detected
Everything looks fine. 🏆

@himdel himdel self-assigned this May 26, 2020
@himdel
Copy link
Contributor

himdel commented May 26, 2020

Thanks, LGTM :)

@himdel himdel merged commit 5e79adf into ManageIQ:master May 26, 2020
@mzazrivec mzazrivec deleted the add_support_for_dialog_reconfigure branch May 26, 2020 12:49
simaishi pushed a commit that referenced this pull request May 26, 2020
simaishi pushed a commit that referenced this pull request May 26, 2020
…gure

dialog-user: add flag for dialog reconfigure
(cherry picked from commit 5e79adf)
@simaishi
Copy link

Jansa backport details:

$ git log -1
commit 8f7e8b9fe8292c372e0a8929458ca2a810d737f9
Author: Martin Hradil <mhradil@redhat.com>
Date:   Tue May 26 12:30:01 2020 +0000

    Merge pull request #440 from mzazrivec/add_support_for_dialog_reconfigure

    dialog-user: add flag for dialog reconfigure
    (cherry picked from commit 5e79adf0217ff1068a5c336e8ef5c291fe2a5933)

@simaishi
Copy link

Ivanchuk backport details:

$ git log -1
commit 90e3d6988512af0bfae0a04670376e2078be07f7
Author: Martin Hradil <mhradil@redhat.com>
Date:   Tue May 26 12:30:01 2020 +0000

    Merge pull request #440 from mzazrivec/add_support_for_dialog_reconfigure

    dialog-user: add flag for dialog reconfigure
    (cherry picked from commit 5e79adf0217ff1068a5c336e8ef5c291fe2a5933)

    https://bugzilla.redhat.com/show_bug.cgi?id=1837410

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants