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
Generic Object - fix extra vm.angularForm and nonused angularForm #3565
Conversation
main custom button form contains the actual form, does not get angularForm via bindings, so should not use vm custom image component *should* use vm, but the function does not actually take args
Checked commit https://github.com/himdel/manageiq-ui-classic/commit/1d29a8442386f63f18936d0f6ff4a39173edaa3b with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@@ -19,7 +19,7 @@ | |||
:title => t, | |||
:alt => t, | |||
:enabled => "true", | |||
'on-click' => "vm.uploadClicked(angularForm)"} | |||
'on-click' => "vm.uploadClicked()"} |
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.
Can't really call this a bug, since technically, nothing is broken w.r.t vm.uploadClicked
right now, or nothing is getting fixed with this change.
@@ -36,7 +36,7 @@ | |||
= "<#{_('Choose')}>" | |||
%span.help-block{"ng-show" => "angularForm.dialog_id.$error.required"} | |||
= _("Required") | |||
.form-group{"ng-class" => "{'has-error': vm.angularForm.display.$invalid}"} | |||
.form-group{"ng-class" => "{'has-error': angularForm.display.$invalid}"} |
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.
although angularForm.display.$invalid
is correct in this case, the error would never be exposed in this field which is a checkbox with Yes/No values - so technically, there is no "invalid" value here.
Anyway, good to have this change.
Above changes do not impact the forms in any way ...but are good to have - LGTM |
main custom button form contains the actual form, does not get angularForm via bindings, so should not use vm
custom image component should use vm, but the function does not actually take args
(noticed these while looking at network controllers, where
vm.angularForm
is never right)Cc @AparnaKarve