diff --git a/app/assets/javascripts/components/ansible-credential-options.js b/app/assets/javascripts/components/ansible-credential-options.js new file mode 100644 index 00000000000..0529facef41 --- /dev/null +++ b/app/assets/javascripts/components/ansible-credential-options.js @@ -0,0 +1,51 @@ +ManageIQ.angular.app.component('ansibleCredentialOptions', { + bindings: { + model: '=', + options: '<', + type: '<', + }, + + controllerAs: 'vm', + + controller: ['$scope', function($scope) { + $scope.__ = __; + + this.setOptions = function() { + this.current_options = this.options[this.type]; + }; + + this.$onInit = function() { + this.setOptions(); + }; + + this.$onChanges = function(changes) { + this.setOptions(); + }; + }], + + template: [ + '