-
Notifications
You must be signed in to change notification settings - Fork 356
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
Fix all users of CredentialsController to provide vm-scope #726
Conversation
@@ -4,7 +4,7 @@ | |||
- vm_scope ||= false | |||
- main_scope = vm_scope ? "$parent.vm" : "$parent" | |||
|
|||
%div{"ng-controller" => "CredentialsController"} | |||
%div{"ng-controller" => "CredentialsController", "vm-scope" => main_scope} |
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.
Easy enough fix...I like that :)
@@ -4,7 +4,7 @@ ManageIQ.angular.app.controller('CredentialsController', ['$scope', '$attrs', fu | |||
vm.vmScope = function() { | |||
return $scope.$eval($attrs.vmScope); | |||
}; | |||
|
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 you get rid of this file altogether from this PR? since it's not really adding anything.
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.
Oh, sorry, there was a trailing whitespace.. I guess we don't need to remove it.. will do :)
@ZitaNemeckova Why is this commit 754d023 linked to this PR? Do we still need those changes? |
@AparnaKarve because this fixes the issue @cben was seeing :). |
Introduced in #425, `CredentialsController` needs a `vm-scope` attribute to be able to determine the correct scope. This change was not done in app/views/layouts/angular/_auth_service_account_angular.html.haml which caused adding a GCE provider to be broken. Fixing.
Checked commit https://github.com/himdel/manageiq-ui-classic/commit/ea7987da7e7b9bfcbff4d339920069039f4b0e67 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Go to Compute > Clouds > Providers, create a new provider.
Pick the GCE type.
Before
(And the Validate button is broken)
Now .. it works.
Introduced in #425,
CredentialsController
needs avm-scope
attribute to be able to determine the correct scope.This change was not done in
app/views/layouts/angular/_auth_service_account_angular.html.haml
which caused adding a GCE provider to be broken.Fixing.
Cc @AparnaKarve , @ZitaNemeckova