Skip to content

Commit

Permalink
Fix all users of CredentialsController to provide vm-scope
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
himdel committed Mar 17, 2017
1 parent d4f095e commit ea7987d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
%div{"ng-show" => ng_show}
.form-group{"ng-class" => "{'has-error': angularForm.service_account.$invalid}"}
%label.col-md-2.control-label{"for" => "service_account"}
Expand Down

0 comments on commit ea7987d

Please sign in to comment.