diff --git a/awx/ui/client/src/access/add-rbac-user-team/rbac-selected-list.directive.js b/awx/ui/client/src/access/add-rbac-user-team/rbac-selected-list.directive.js index 99e2cb451f..f65d0324ad 100644 --- a/awx/ui/client/src/access/add-rbac-user-team/rbac-selected-list.directive.js +++ b/awx/ui/client/src/access/add-rbac-user-team/rbac-selected-list.directive.js @@ -5,7 +5,7 @@ *************************************************/ /* jshint unused: vars */ -export default ['$compile','templateUrl', 'i18n', 'generateList', +export default ['$compile','templateUrl', 'i18n', 'generateList', 'ProjectList', 'TemplateList', 'InventoryList', 'CredentialList', function($compile, templateUrl, i18n, generateList, ProjectList, TemplateList, InventoryList, CredentialList) { @@ -71,7 +71,7 @@ export default ['$compile','templateUrl', 'i18n', 'generateList', case 'workflow_templates': list.name = 'workflow_templates'; - list.iterator = 'workflow_template', + list.iterator = 'workflow_template'; list.basePath = 'workflow_job_templates'; list.fields = { name: list.fields.name, @@ -114,7 +114,7 @@ export default ['$compile','templateUrl', 'i18n', 'generateList', // section 1 and section 2 elements produce sibling scopes // This means events propogated from section 2 are not received in section 1 // The following code directly accesses the right scope by list table id - multiselect_scope = angular.element('#AddPermissions-body').find(`#${type}_table`).scope() + multiselect_scope = angular.element('#AddPermissions-body').find(`#${type}_table`).scope(); deselectedIdx = _.findIndex(multiselect_scope[type], {id: resource.id}); multiselect_scope[type][deselectedIdx].isSelected = false; }; diff --git a/awx/ui/client/src/access/add-rbac-user-team/rbac-user-team.controller.js b/awx/ui/client/src/access/add-rbac-user-team/rbac-user-team.controller.js index 3e8f637f1d..3530124788 100644 --- a/awx/ui/client/src/access/add-rbac-user-team/rbac-user-team.controller.js +++ b/awx/ui/client/src/access/add-rbac-user-team/rbac-user-team.controller.js @@ -11,7 +11,7 @@ * Controller for handling permissions adding */ -export default ['$rootScope', '$scope', '$state', 'i18n', 'CreateSelect2', 'GetBasePath', 'Rest', '$q', 'Wait', 'ProcessErrors', +export default ['$rootScope', '$scope', '$state', 'i18n', 'CreateSelect2', 'GetBasePath', 'Rest', '$q', 'Wait', 'ProcessErrors', function(rootScope, scope, $state, i18n, CreateSelect2, GetBasePath, Rest, $q, Wait, ProcessErrors) { init(); @@ -51,7 +51,7 @@ function(rootScope, scope, $state, i18n, CreateSelect2, GetBasePath, Rest, $q, W /*