Merge branch 'inject-dependency-audit' of https://github.com/mabashian/ansible-tower into mabashian-inject-dependency-audit

# Conflicts:
#	awx/ui/client/src/activity-stream/factories/show-detail.factory.js
#	awx/ui/client/src/activity-stream/factories/stream.factory.js
#	awx/ui/client/src/credentials/add/credentials-add.controller.js
#	awx/ui/client/src/credentials/edit/credentials-edit.controller.js
#	awx/ui/client/src/credentials/list/credentials-list.controller.js
#	awx/ui/client/src/inventories/edit/inventory-edit.controller.js
#	awx/ui/client/src/inventories/manage/adhoc/adhoc.controller.js
#	awx/ui/client/src/organizations/edit/organizations-edit.controller.js
#	awx/ui/client/src/organizations/linkout/addUsers/addUsers.controller.js
#	awx/ui/client/src/organizations/linkout/addUsers/addUsers.directive.js
#	awx/ui/client/src/organizations/linkout/controllers/organizations-admins.controller.js
#	awx/ui/client/src/organizations/linkout/controllers/organizations-job-templates.controller.js
#	awx/ui/client/src/organizations/linkout/controllers/organizations-projects.controller.js
#	awx/ui/client/src/organizations/linkout/controllers/organizations-teams.controller.js
#	awx/ui/client/src/organizations/linkout/controllers/organizations-users.controller.js
#	awx/ui/client/src/teams/add/teams-add.controller.js
#	awx/ui/client/src/teams/list/teams-list.controller.js
#	awx/ui/client/src/templates/workflows/add-workflow/workflow-add.controller.js
#	awx/ui/client/src/templates/workflows/edit-workflow/workflow-edit.controller.js
#	awx/ui/client/src/templates/workflows/workflow-maker/workflow-maker.controller.js
#	awx/ui/client/src/users/add/users-add.controller.js
#	awx/ui/client/src/users/edit/users-edit.controller.js
#	awx/ui/client/src/users/list/users-list.controller.js
This commit is contained in:
Michael Abashian
2017-03-22 11:24:03 -04:00
76 changed files with 330 additions and 352 deletions

View File

@@ -7,8 +7,8 @@ import controller from './rbac-resource.controller';
/* jshint unused: vars */ /* jshint unused: vars */
export default ['templateUrl', '$state', export default ['templateUrl', '$state',
'Wait', 'addPermissionsUsersList', 'addPermissionsTeamsList', 'addPermissionsUsersList', 'addPermissionsTeamsList',
function(templateUrl, $state, Wait, usersList, teamsList) { function(templateUrl, $state, usersList, teamsList) {
return { return {
restrict: 'E', restrict: 'E',
scope: { scope: {

View File

@@ -5,10 +5,10 @@
*************************************************/ *************************************************/
/* jshint unused: vars */ /* jshint unused: vars */
export default ['$compile','templateUrl', 'i18n', 'generateList', export default ['$compile', 'i18n', 'generateList',
'ProjectList', 'TemplateList', 'InventoryList', 'CredentialList', 'ProjectList', 'TemplateList', 'InventoryList', 'CredentialList',
'OrganizationList', 'OrganizationList',
function($compile, templateUrl, i18n, generateList, function($compile, i18n, generateList,
ProjectList, TemplateList, InventoryList, CredentialList, ProjectList, TemplateList, InventoryList, CredentialList,
OrganizationList) { OrganizationList) {
return { return {

View File

@@ -11,8 +11,8 @@
* Controller for handling permissions adding * Controller for handling permissions adding
*/ */
export default ['$rootScope', '$scope', '$state', 'i18n', 'CreateSelect2', 'GetBasePath', 'Rest', '$q', 'Wait', 'ProcessErrors', export default ['$scope', '$state', 'i18n', 'CreateSelect2', 'Rest', '$q', 'Wait', 'ProcessErrors',
function(rootScope, scope, $state, i18n, CreateSelect2, GetBasePath, Rest, $q, Wait, ProcessErrors) { function(scope, $state, i18n, CreateSelect2, Rest, $q, Wait, ProcessErrors) {
init(); init();

View File

@@ -6,10 +6,10 @@
/* jshint unused: vars */ /* jshint unused: vars */
export default ['addPermissionsTeamsList', 'addPermissionsUsersList', 'TemplateList', 'ProjectList', export default ['addPermissionsTeamsList', 'addPermissionsUsersList', 'TemplateList', 'ProjectList',
'InventoryList', 'CredentialList', '$compile', 'generateList', 'GetBasePath', 'InventoryList', 'CredentialList', '$compile', 'generateList',
'OrganizationList', 'OrganizationList',
function(addPermissionsTeamsList, addPermissionsUsersList, TemplateList, ProjectList, function(addPermissionsTeamsList, addPermissionsUsersList, TemplateList, ProjectList,
InventoryList, CredentialList, $compile, generateList, GetBasePath, InventoryList, CredentialList, $compile, generateList,
OrganizationList) { OrganizationList) {
return { return {
restrict: 'E', restrict: 'E',

View File

@@ -1,40 +1,38 @@
export default function ShowDetail($filter, $rootScope, Rest, Alert, export default
GenerateForm, ProcessErrors, GetBasePath, FormatDate, ActivityDetailForm, function ShowDetail($filter, Find) {
Empty, Find) { return function (params, scope) {
return function (params, scope) {
var activity_id = params.activity_id, var activity_id = params.activity_id,
activity = Find({ list: params.scope.activities, key: 'id', val: activity_id }), activity = Find({ list: params.scope.activities, key: 'id', val: activity_id }),
element; element;
if (activity) { if (activity) {
// Grab our element out of the dom // Grab our element out of the dom
element = angular.element(document.getElementById('stream-detail-modal')); element = angular.element(document.getElementById('stream-detail-modal'));
// Grab the modal's scope so that we can set a few variables // Grab the modal's scope so that we can set a few variables
scope = element.scope(); scope = element.scope();
scope.changes = activity.changes; scope.changes = activity.changes;
scope.user = ((activity.summary_fields.actor) ? activity.summary_fields.actor.username : 'system') + scope.user = ((activity.summary_fields.actor) ? activity.summary_fields.actor.username : 'system') +
' on ' + $filter('longDate')(activity.timestamp); ' on ' + $filter('longDate')(activity.timestamp);
scope.operation = activity.description; scope.operation = activity.description;
scope.header = "Event " + activity.id; scope.header = "Event " + activity.id;
// Open the modal // Open the modal
$('#stream-detail-modal').modal({ $('#stream-detail-modal').modal({
show: true, show: true,
backdrop: 'static', backdrop: 'static',
keyboard: true keyboard: true
}); });
if (!scope.$$phase) { if (!scope.$$phase) {
scope.$digest(); scope.$digest();
}
} }
}
}; };
} }
ShowDetail.$inject = ['$filter', '$rootScope', 'Rest', 'Alert', 'GenerateForm', 'ProcessErrors', 'GetBasePath', 'FormatDate', ShowDetail.$inject = ['$filter', 'Find'];
'ActivityDetailForm', 'Empty', 'Find'];

View File

@@ -1,7 +1,6 @@
export default function Stream($rootScope, $location, $state, Rest, GetBasePath, export default
ProcessErrors, Wait, StreamList, GenerateList, FormatDate, BuildDescription, function Stream($rootScope, $state, BuildDescription, ShowDetail) {
ShowDetail) { return function (params) {
return function (params) {
var scope = params.scope; var scope = params.scope;
@@ -48,6 +47,4 @@ ShowDetail) {
}; };
} }
Stream.$inject = ['$rootScope', '$location', '$state', 'Rest', 'GetBasePath', Stream.$inject = ['$rootScope', '$state', 'BuildDescription', 'ShowDetail'];
'ProcessErrors', 'Wait', 'StreamList', 'generateList', 'FormatDate', 'BuildDescription',
'ShowDetail'];

View File

@@ -1,6 +1,6 @@
export default export default
['templateUrl', '$state', 'FeaturesService', 'ProcessErrors','$rootScope', 'Store', 'Empty', '$window', 'BreadCrumbService', 'i18n', ['templateUrl', '$state', 'FeaturesService','$rootScope', 'Store', 'Empty', '$window', 'BreadCrumbService', 'i18n',
function(templateUrl, $state, FeaturesService, ProcessErrors, $rootScope, Store, Empty, $window, BreadCrumbService, i18n) { function(templateUrl, $state, FeaturesService, $rootScope, Store, Empty, $window, BreadCrumbService, i18n) {
return { return {
restrict: 'E', restrict: 'E',
templateUrl: templateUrl('bread-crumb/bread-crumb'), templateUrl: templateUrl('bread-crumb/bread-crumb'),

View File

@@ -4,13 +4,14 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$scope', '$rootScope', '$stateParams', 'CredentialForm', export default ['$scope', '$rootScope',
'GenerateForm', 'Rest', 'ProcessErrors', 'ClearScope', 'GetBasePath', '$log', '$stateParams', 'CredentialForm', 'GenerateForm', 'Rest',
'GetChoices', 'Empty', 'KindChange', 'BecomeMethodChange', 'ProcessErrors', 'ClearScope', 'GetBasePath', 'GetChoices', 'Empty', 'KindChange', 'BecomeMethodChange',
'OwnerChange', 'CredentialFormSave', '$state', 'CreateSelect2', 'i18n', 'OwnerChange', 'CredentialFormSave', '$state', 'CreateSelect2', 'i18n',
function($scope, $rootScope, $stateParams, CredentialForm, GenerateForm, function($scope, $rootScope, $log,
Rest, ProcessErrors, ClearScope, GetBasePath, GetChoices, Empty, KindChange, $stateParams, CredentialForm, GenerateForm, Rest, ProcessErrors,
BecomeMethodChange, OwnerChange, CredentialFormSave, $state, CreateSelect2, i18n) { ClearScope, GetBasePath, GetChoices, Empty, KindChange, BecomeMethodChange,
OwnerChange, CredentialFormSave, $state, CreateSelect2, i18n) {
ClearScope(); ClearScope();

View File

@@ -4,15 +4,15 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$scope', '$rootScope', '$location', '$stateParams', export default ['$scope', '$rootScope', '$location',
'CredentialForm', 'Rest', 'ProcessErrors', 'ClearScope', 'Prompt', '$stateParams', 'CredentialForm', 'Rest',
'GetBasePath', 'GetChoices', 'KindChange', 'BecomeMethodChange', 'Empty', 'ProcessErrors', 'ClearScope', 'Prompt', 'GetBasePath', 'GetChoices',
'OwnerChange', 'Wait', '$state', 'CreateSelect2', 'KindChange', 'BecomeMethodChange', 'Empty', 'OwnerChange',
'Authorization', 'i18n', 'CredentialFormSave', 'CredentialFormSave', 'Wait', '$state', 'CreateSelect2', 'Authorization', 'i18n',
function($scope, $rootScope, $location, $stateParams, CredentialForm, Rest, function($scope, $rootScope, $location,
ProcessErrors, ClearScope, Prompt, GetBasePath, GetChoices, KindChange, $stateParams, CredentialForm, Rest, ProcessErrors, ClearScope, Prompt,
BecomeMethodChange, Empty, OwnerChange, Wait, $state, GetBasePath, GetChoices, KindChange, BecomeMethodChange, Empty, OwnerChange, CredentialFormSave, Wait,
CreateSelect2, Authorization, i18n, CredentialFormSave) { $state, CreateSelect2, Authorization, i18n) {
ClearScope(); ClearScope();

View File

@@ -1,5 +1,5 @@
export default export default
function CredentialFormSave($rootScope, $location, Alert, Rest, ProcessErrors, Empty, GetBasePath, CredentialForm, ReturnToCaller, Wait, $state, i18n) { function CredentialFormSave($rootScope, $location, Rest, ProcessErrors, GetBasePath, CredentialForm, ReturnToCaller, Wait, $state, i18n) {
return function(params) { return function(params) {
var scope = params.scope, var scope = params.scope,
mode = params.mode, mode = params.mode,
@@ -99,7 +99,7 @@ export default
} }
CredentialFormSave.$inject = CredentialFormSave.$inject =
[ '$rootScope', '$location', 'Alert', 'Rest', [ '$rootScope', '$location', 'Rest',
'ProcessErrors', 'Empty', 'GetBasePath', 'CredentialForm', 'ProcessErrors', 'GetBasePath', 'CredentialForm',
'ReturnToCaller', 'Wait', '$state', 'i18n' 'ReturnToCaller', 'Wait', '$state', 'i18n'
]; ];

View File

@@ -5,10 +5,9 @@
*************************************************/ *************************************************/
export default ['$scope', 'Rest', 'CredentialList', 'Prompt', 'ClearScope', export default ['$scope', 'Rest', 'CredentialList', 'Prompt', 'ClearScope',
'ProcessErrors', 'GetBasePath', 'Wait', '$state', '$filter', 'ProcessErrors', 'GetBasePath', 'Wait', '$state', '$filter', 'rbacUiControlService', 'Dataset', 'i18n',
'rbacUiControlService', 'Dataset', 'i18n', function($scope, Rest, CredentialList, Prompt, ClearScope,
function($scope, Rest, CredentialList, Prompt, ClearScope, ProcessErrors, ProcessErrors, GetBasePath, Wait, $state, $filter, rbacUiControlService, Dataset,
GetBasePath, Wait, $state, $filter, rbacUiControlService, Dataset,
i18n) { i18n) {
ClearScope(); ClearScope();

View File

@@ -5,19 +5,15 @@
*************************************************/ *************************************************/
export default export default
[ '$rootScope', [ '$window',
'$compile',
'$location' ,
'$window',
'Wait',
'adjustGraphSize', 'adjustGraphSize',
'jobStatusGraphData',
'templateUrl', 'templateUrl',
'i18n', 'i18n',
'jobStatusGraphData',
JobStatusGraph JobStatusGraph
]; ];
function JobStatusGraph($rootScope, $compile , $location, $window, Wait, adjustGraphSize, graphDataService, templateUrl, i18n) { function JobStatusGraph($window, adjustGraphSize, templateUrl, i18n, graphDataService) {
return { return {
restrict: 'E', restrict: 'E',
scope: { scope: {

View File

@@ -4,10 +4,10 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$scope', '$compile', '$stateParams', '$rootScope', '$location', '$log','Wait', export default ['$scope', '$rootScope','Wait',
'ClearScope', 'Rest', 'GetBasePath', 'ProcessErrors', '$window', 'graphData', 'ClearScope', 'Rest', 'GetBasePath', 'ProcessErrors', 'graphData',
function($scope, $compile, $stateParams, $rootScope, $location, $log, Wait, function($scope, $rootScope, Wait,
ClearScope, Rest, GetBasePath, ProcessErrors, $window, graphData) { ClearScope, Rest, GetBasePath, ProcessErrors, graphData) {
ClearScope('home'); ClearScope('home');

View File

@@ -10,8 +10,8 @@
* @description This controller's for the Inventory page * @description This controller's for the Inventory page
*/ */
function InventoriesAdd($scope, $rootScope, $compile, $location, $log, function InventoriesAdd($scope, $location,
$stateParams, GenerateForm, InventoryForm, rbacUiControlService, Rest, Alert, ProcessErrors, GenerateForm, InventoryForm, rbacUiControlService, Rest, Alert, ProcessErrors,
ClearScope, GetBasePath, ParseTypeChange, Wait, ToJSON, ClearScope, GetBasePath, ParseTypeChange, Wait, ToJSON,
$state) { $state) {
@@ -97,8 +97,8 @@ function InventoriesAdd($scope, $rootScope, $compile, $location, $log,
}; };
} }
export default ['$scope', '$rootScope', '$compile', '$location', export default ['$scope', '$location',
'$log', '$stateParams', 'GenerateForm', 'InventoryForm', 'rbacUiControlService', 'Rest', 'Alert', 'GenerateForm', 'InventoryForm', 'rbacUiControlService', 'Rest', 'Alert',
'ProcessErrors', 'ClearScope', 'GetBasePath', 'ParseTypeChange', 'ProcessErrors', 'ClearScope', 'GetBasePath', 'ParseTypeChange',
'Wait', 'ToJSON', '$state', InventoriesAdd 'Wait', 'ToJSON', '$state', InventoriesAdd
]; ];

View File

@@ -10,11 +10,10 @@
* @description This controller's for the Inventory page * @description This controller's for the Inventory page
*/ */
function InventoriesEdit($scope, $rootScope, $compile, $location, function InventoriesEdit($scope, $location,
$log, $stateParams, InventoryForm, Rest, Alert, ProcessErrors, $stateParams, InventoryForm, Rest, ProcessErrors,
ClearScope, GetBasePath, ParseTypeChange, Wait, ToJSON, ClearScope, GetBasePath, ParseTypeChange, Wait, ToJSON,
ParseVariableString, Prompt, InitiatePlaybookRun, ParseVariableString, $state, OrgAdminLookup) {
TemplatesService, $state, OrgAdminLookup) {
// Inject dynamic view // Inject dynamic view
var defaultUrl = GetBasePath('inventory'), var defaultUrl = GetBasePath('inventory'),
@@ -133,9 +132,9 @@ function InventoriesEdit($scope, $rootScope, $compile, $location,
} }
export default ['$scope', '$rootScope', '$compile', '$location', export default ['$scope', '$location',
'$log', '$stateParams', 'InventoryForm', 'Rest', 'Alert', '$stateParams', 'InventoryForm', 'Rest',
'ProcessErrors', 'ClearScope', 'GetBasePath', 'ParseTypeChange', 'Wait', 'ProcessErrors', 'ClearScope', 'GetBasePath', 'ParseTypeChange', 'Wait',
'ToJSON', 'ParseVariableString', 'Prompt', 'InitiatePlaybookRun', 'ToJSON', 'ParseVariableString',
'TemplatesService', '$state', 'OrgAdminLookup', InventoriesEdit, '$state', 'OrgAdminLookup', InventoriesEdit,
]; ];

View File

@@ -10,9 +10,9 @@
* @description This controller's for the Inventory page * @description This controller's for the Inventory page
*/ */
function InventoriesList($scope, $rootScope, $location, $log, function InventoriesList($scope, $rootScope, $location,
$stateParams, $compile, $filter, Rest, Alert, InventoryList, Prompt, $compile, $filter, Rest, InventoryList, Prompt,
ClearScope, ProcessErrors, GetBasePath, Wait, Find, Empty, $state, rbacUiControlService, Dataset) { ProcessErrors, GetBasePath, Wait, Find, Empty, $state, rbacUiControlService, Dataset) {
let list = InventoryList, let list = InventoryList,
defaultUrl = GetBasePath('inventory'); defaultUrl = GetBasePath('inventory');
@@ -302,7 +302,7 @@ function InventoriesList($scope, $rootScope, $location, $log,
}; };
} }
export default ['$scope', '$rootScope', '$location', '$log', export default ['$scope', '$rootScope', '$location',
'$stateParams', '$compile', '$filter', 'Rest', 'Alert', 'InventoryList', '$compile', '$filter', 'Rest', 'InventoryList',
'Prompt', 'ClearScope', 'ProcessErrors', 'GetBasePath', 'Wait', 'Find', 'Empty', '$state', 'rbacUiControlService', 'Dataset', InventoriesList 'Prompt', 'ProcessErrors', 'GetBasePath', 'Wait', 'Find', 'Empty', '$state', 'rbacUiControlService', 'Dataset', InventoriesList
]; ];

View File

@@ -9,10 +9,10 @@
* @name controllers.function:Adhoc * @name controllers.function:Adhoc
* @description This controller controls the adhoc form creation, command launching and navigating to standard out after command has been succesfully ran. * @description This controller controls the adhoc form creation, command launching and navigating to standard out after command has been succesfully ran.
*/ */
function adhocController($q, $scope, $location, $stateParams, function adhocController($q, $scope, $stateParams,
$state, CheckPasswords, PromptForPasswords, CreateLaunchDialog, CreateSelect2, adhocForm, $state, CheckPasswords, PromptForPasswords, CreateLaunchDialog, CreateSelect2, adhocForm,
GenerateForm, Rest, ProcessErrors, ClearScope, GetBasePath, GetChoices, GenerateForm, Rest, ProcessErrors, ClearScope, GetBasePath, GetChoices,
KindChange, CredentialList, ParseTypeChange, Empty, Wait) { KindChange, Wait, ParseTypeChange) {
ClearScope(); ClearScope();
@@ -301,8 +301,8 @@ function adhocController($q, $scope, $location, $stateParams,
} }
export default ['$q', '$scope', '$location', '$stateParams', export default ['$q', '$scope', '$stateParams',
'$state', 'CheckPasswords', 'PromptForPasswords', 'CreateLaunchDialog', 'CreateSelect2', '$state', 'CheckPasswords', 'PromptForPasswords', 'CreateLaunchDialog', 'CreateSelect2',
'adhocForm', 'GenerateForm', 'Rest', 'ProcessErrors', 'ClearScope', 'GetBasePath', 'adhocForm', 'GenerateForm', 'Rest', 'ProcessErrors', 'ClearScope', 'GetBasePath',
'GetChoices', 'KindChange', 'CredentialList', 'ParseTypeChange', 'Empty', 'Wait', 'GetChoices', 'KindChange', 'Wait', 'ParseTypeChange',
adhocController]; adhocController];

View File

@@ -5,8 +5,8 @@
*************************************************/ *************************************************/
export default export default
['$scope', '$state', '$stateParams', 'GroupManageService', 'GetBasePath', 'CopyMoveGroupList', 'group', 'Dataset', ['$scope', '$state', '$stateParams', 'GroupManageService', 'CopyMoveGroupList', 'group', 'Dataset',
function($scope, $state, $stateParams, GroupManageService, GetBasePath, CopyMoveGroupList, group, Dataset){ function($scope, $state, $stateParams, GroupManageService, CopyMoveGroupList, group, Dataset){
var list = CopyMoveGroupList; var list = CopyMoveGroupList;
$scope.item = group; $scope.item = group;

View File

@@ -5,8 +5,8 @@
*************************************************/ *************************************************/
export default export default
['$scope', '$state', '$stateParams', 'generateList', 'HostManageService', 'GetBasePath', 'CopyMoveGroupList', 'host', 'Dataset', ['$scope', '$state', '$stateParams', 'HostManageService', 'CopyMoveGroupList', 'host', 'Dataset',
function($scope, $state, $stateParams, GenerateList, HostManageService, GetBasePath, CopyMoveGroupList, host, Dataset){ function($scope, $state, $stateParams, HostManageService, CopyMoveGroupList, host, Dataset){
var list = CopyMoveGroupList; var list = CopyMoveGroupList;
$scope.item = host; $scope.item = host;

View File

@@ -1,5 +1,5 @@
export default export default
function ViewUpdateStatus($state, Rest, ProcessErrors, GetBasePath, Alert, Wait, Empty, Find) { function ViewUpdateStatus($state, Rest, ProcessErrors, Alert, Wait, Empty, Find) {
return function(params) { return function(params) {
var scope = params.scope, var scope = params.scope,
group_id = params.group_id, group_id = params.group_id,
@@ -42,5 +42,5 @@ export default
ViewUpdateStatus.$inject = ViewUpdateStatus.$inject =
[ '$state', 'Rest', 'ProcessErrors', [ '$state', 'Rest', 'ProcessErrors',
'GetBasePath', 'Alert', 'Wait', 'Empty', 'Find' 'Alert', 'Wait', 'Empty', 'Find'
]; ];

View File

@@ -4,9 +4,9 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$state', '$stateParams', '$scope', 'GroupForm', 'CredentialList', 'ParseTypeChange', 'GenerateForm', 'inventoryData', export default ['$state', '$stateParams', '$scope', 'GroupForm', 'ParseTypeChange', 'GenerateForm', 'inventoryData',
'GroupManageService', 'GetChoices', 'GetBasePath', 'CreateSelect2', 'GetSourceTypeOptions', 'rbacUiControlService', 'ToJSON', 'GroupManageService', 'GetChoices', 'GetBasePath', 'CreateSelect2', 'GetSourceTypeOptions', 'rbacUiControlService', 'ToJSON',
function($state, $stateParams, $scope, GroupForm, CredentialList, ParseTypeChange, GenerateForm, inventoryData, function($state, $stateParams, $scope, GroupForm, ParseTypeChange, GenerateForm, inventoryData,
GroupManageService, GetChoices, GetBasePath, CreateSelect2, GetSourceTypeOptions, rbacUiControlService, ToJSON) { GroupManageService, GetChoices, GetBasePath, CreateSelect2, GetSourceTypeOptions, rbacUiControlService, ToJSON) {
let form = GroupForm(); let form = GroupForm();

View File

@@ -4,9 +4,9 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$state', '$stateParams', '$scope', 'ToggleNotification', 'ParseVariableString', 'rbacUiControlService', 'ToJSON', export default ['$state', '$stateParams', '$scope', 'ParseVariableString', 'rbacUiControlService', 'ToJSON',
'ParseTypeChange', 'GroupManageService', 'GetChoices', 'GetBasePath', 'CreateSelect2', 'GetSourceTypeOptions', 'groupData', 'inventorySourceData', 'ParseTypeChange', 'GroupManageService', 'GetChoices', 'GetBasePath', 'CreateSelect2', 'GetSourceTypeOptions', 'groupData', 'inventorySourceData',
function($state, $stateParams, $scope, ToggleNotification, ParseVariableString, rbacUiControlService, ToJSON, function($state, $stateParams, $scope, ParseVariableString, rbacUiControlService, ToJSON,
ParseTypeChange, GroupManageService, GetChoices, GetBasePath, CreateSelect2, GetSourceTypeOptions, groupData, inventorySourceData) { ParseTypeChange, GroupManageService, GetChoices, GetBasePath, CreateSelect2, GetSourceTypeOptions, groupData, inventorySourceData) {
init(); init();

View File

@@ -4,12 +4,12 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default export default
['$scope', '$rootScope', '$state', '$stateParams', 'InventoryGroups', 'generateList', 'InventoryUpdate', ['$scope', '$rootScope', '$state', '$stateParams', 'InventoryGroups', 'InventoryUpdate',
'GroupManageService', 'GroupsCancelUpdate', 'ViewUpdateStatus', 'rbacUiControlService', 'GetBasePath', 'GroupManageService', 'GroupsCancelUpdate', 'ViewUpdateStatus', 'rbacUiControlService', 'GetBasePath',
'InventoryManageService', 'groupsUrl', 'GetSyncStatusMsg', 'GetHostsStatusMsg', 'groupsDataset', 'Find', 'QuerySet', 'GetSyncStatusMsg', 'GetHostsStatusMsg', 'groupsDataset', 'Find', 'QuerySet',
function($scope, $rootScope, $state, $stateParams, InventoryGroups, generateList, InventoryUpdate, function($scope, $rootScope, $state, $stateParams, InventoryGroups, InventoryUpdate,
GroupManageService, GroupsCancelUpdate, ViewUpdateStatus, rbacUiControlService, GetBasePath, GroupManageService, GroupsCancelUpdate, ViewUpdateStatus, rbacUiControlService, GetBasePath,
InventoryManageService, groupsUrl, GetSyncStatusMsg, GetHostsStatusMsg, groupsDataset, Find, qs){ GetSyncStatusMsg, GetHostsStatusMsg, groupsDataset, Find, qs){
let list = InventoryGroups; let list = InventoryGroups;

View File

@@ -4,9 +4,9 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default export default
['$scope', '$rootScope', '$state', '$stateParams', 'InventoryHosts', 'generateList', 'InventoryManageService', 'HostManageService', ['$scope', '$rootScope', '$state', '$stateParams', 'InventoryHosts', 'HostManageService',
'hostsUrl', 'SetStatus', 'Prompt', 'Wait', 'inventoryData', '$filter', 'hostsDataset', 'GetBasePath', 'rbacUiControlService', 'QuerySet', 'hostsUrl', 'SetStatus', 'Prompt', 'Wait', 'inventoryData', '$filter', 'hostsDataset', 'GetBasePath', 'rbacUiControlService', 'QuerySet',
function($scope, $rootScope, $state, $stateParams, InventoryHosts, generateList, InventoryManageService, HostManageService, function($scope, $rootScope, $state, $stateParams, InventoryHosts, HostManageService,
hostsUrl, SetStatus, Prompt, Wait, inventoryData, $filter, hostsDataset, GetBasePath, rbacUiControlService, qs){ hostsUrl, SetStatus, Prompt, Wait, inventoryData, $filter, hostsDataset, GetBasePath, rbacUiControlService, qs){
var list = InventoryHosts; var list = InventoryHosts;

View File

@@ -4,11 +4,11 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$rootScope', 'Rest', 'Wait', export default ['Rest', 'Wait',
'InventoryScriptsForm', 'ProcessErrors', 'GetBasePath', 'Empty', 'InventoryScriptsForm', 'ProcessErrors', 'GetBasePath',
'GenerateForm', '$scope', '$state', 'Alert', 'GenerateForm', '$scope', '$state', 'Alert',
function($rootScope, Rest, Wait, function(Rest, Wait,
InventoryScriptsForm, ProcessErrors, GetBasePath, Empty, InventoryScriptsForm, ProcessErrors, GetBasePath,
GenerateForm, $scope, $state, Alert GenerateForm, $scope, $state, Alert
) { ) {
var form = InventoryScriptsForm, var form = InventoryScriptsForm,

View File

@@ -6,11 +6,11 @@
export default ['Rest', 'Wait', export default ['Rest', 'Wait',
'InventoryScriptsForm', 'ProcessErrors', 'GetBasePath', 'InventoryScriptsForm', 'ProcessErrors', 'GetBasePath',
'GenerateForm', 'OrganizationList', 'inventory_scriptData', 'GenerateForm', 'inventory_scriptData',
'$scope', '$state', '$scope', '$state',
function( function(
Rest, Wait, InventoryScriptsForm, ProcessErrors, GetBasePath, Rest, Wait, InventoryScriptsForm, ProcessErrors, GetBasePath,
GenerateForm, OrganizationList, inventory_scriptData, GenerateForm, inventory_scriptData,
$scope, $state $scope, $state
) { ) {
var generator = GenerateForm, var generator = GenerateForm,

View File

@@ -4,10 +4,10 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$rootScope', '$scope', 'Wait', 'generateList', 'InventoryScriptsList', export default ['$rootScope', '$scope', 'Wait', 'InventoryScriptsList',
'GetBasePath', 'Rest', 'ProcessErrors', 'Prompt', '$state', '$filter', 'Dataset', 'rbacUiControlService', 'GetBasePath', 'Rest', 'ProcessErrors', 'Prompt', '$state', '$filter', 'Dataset', 'rbacUiControlService',
function( function(
$rootScope, $scope, Wait, GenerateList, InventoryScriptsList, $rootScope, $scope, Wait, InventoryScriptsList,
GetBasePath, Rest, ProcessErrors, Prompt, $state, $filter, Dataset, rbacUiControlService GetBasePath, Rest, ProcessErrors, Prompt, $state, $filter, Dataset, rbacUiControlService
) { ) {
var defaultUrl = GetBasePath('inventory_scripts'), var defaultUrl = GetBasePath('inventory_scripts'),

View File

@@ -6,8 +6,8 @@
export default export default
['$stateParams', '$scope', '$state', 'Wait', 'jobResultsService', 'hostEvent', ['$scope', '$state', 'jobResultsService', 'hostEvent',
function($stateParams, $scope, $state, Wait, jobResultsService, hostEvent){ function($scope, $state, jobResultsService, hostEvent){
$scope.processEventStatus = jobResultsService.processEventStatus; $scope.processEventStatus = jobResultsService.processEventStatus;
$scope.processResults = function(value){ $scope.processResults = function(value){

View File

@@ -1,5 +1,5 @@
export default ['jobData', 'jobDataOptions', 'jobLabels', 'jobFinished', 'count', '$scope', 'ParseTypeChange', 'ParseVariableString', 'jobResultsService', 'eventQueue', '$compile', '$log', 'Dataset', '$q', 'Rest', '$state', 'QuerySet', '$rootScope', 'moment', '$stateParams', 'i18n', 'fieldChoices', 'fieldLabels', 'workflowResultsService', 'statusSocket', export default ['jobData', 'jobDataOptions', 'jobLabels', 'jobFinished', 'count', '$scope', 'ParseTypeChange', 'ParseVariableString', 'jobResultsService', 'eventQueue', '$compile', '$log', 'Dataset', '$q', 'QuerySet', '$rootScope', 'moment', '$stateParams', 'i18n', 'fieldChoices', 'fieldLabels', 'workflowResultsService', 'statusSocket',
function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTypeChange, ParseVariableString, jobResultsService, eventQueue, $compile, $log, Dataset, $q, Rest, $state, QuerySet, $rootScope, moment, $stateParams, i18n, fieldChoices, fieldLabels, workflowResultsService, statusSocket) { function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTypeChange, ParseVariableString, jobResultsService, eventQueue, $compile, $log, Dataset, $q, QuerySet, $rootScope, moment, $stateParams, i18n, fieldChoices, fieldLabels, workflowResultsService, statusSocket) {
var toDestroy = []; var toDestroy = [];
var cancelRequests = false; var cancelRequests = false;
var runTimeElapsedTimer = null; var runTimeElapsedTimer = null;

View File

@@ -40,8 +40,8 @@
*/ */
export default export default
function AdhocRun($location, $stateParams, LaunchJob, PromptForPasswords, function AdhocRun($location, PromptForPasswords,
Rest, GetBasePath, Alert, ProcessErrors, Wait, Empty, CreateLaunchDialog, $state) { Rest, GetBasePath, ProcessErrors, Wait, Empty, CreateLaunchDialog, $state) {
return function(params) { return function(params) {
var id = params.project_id, var id = params.project_id,
scope = params.scope.$new(), scope = params.scope.$new(),
@@ -156,7 +156,7 @@
} }
AdhocRun.$inject = AdhocRun.$inject =
[ '$location','$stateParams', 'LaunchJob', [ '$location',
'PromptForPasswords', 'Rest', 'GetBasePath', 'Alert', 'ProcessErrors', 'PromptForPasswords', 'Rest', 'GetBasePath', 'ProcessErrors',
'Wait', 'Empty', 'CreateLaunchDialog', '$state' 'Wait', 'Empty', 'CreateLaunchDialog', '$state'
]; ];

View File

@@ -1,5 +1,5 @@
export default export default
function InitiatePlaybookRun($location, GetBasePath, Empty, $compile) { function InitiatePlaybookRun($compile) {
// This factory drops the submit-job directive into the dom which // This factory drops the submit-job directive into the dom which
// either launches the job (when no user input is needed) or shows // either launches the job (when no user input is needed) or shows
@@ -19,8 +19,5 @@ export default
} }
InitiatePlaybookRun.$inject = InitiatePlaybookRun.$inject =
[ '$location', [ '$compile'
'GetBasePath',
'Empty',
'$compile'
]; ];

View File

@@ -1,5 +1,5 @@
export default export default
function InventoryUpdate(PromptForPasswords, LaunchJob, Rest, GetBasePath, ProcessErrors, Alert, Wait) { function InventoryUpdate(PromptForPasswords, LaunchJob, Rest, ProcessErrors, Alert, Wait) {
return function (params) { return function (params) {
var scope = params.scope, var scope = params.scope,
@@ -69,7 +69,6 @@ InventoryUpdate.$inject =
[ 'PromptForPasswords', [ 'PromptForPasswords',
'LaunchJob', 'LaunchJob',
'Rest', 'Rest',
'GetBasePath',
'ProcessErrors', 'ProcessErrors',
'Alert', 'Alert',
'Wait' 'Wait'

View File

@@ -62,11 +62,11 @@
*/ */
export default export default
[ '$scope', '$location', 'GetBasePath', 'Empty', 'Wait', 'Rest', 'ProcessErrors', [ '$scope', 'GetBasePath', 'Wait', 'Rest', 'ProcessErrors',
'LaunchJob', '$state', 'generateList', 'InventoryList', 'CredentialList', 'ParseTypeChange', 'LaunchJob', '$state', 'InventoryList', 'CredentialList', 'ParseTypeChange',
'GetSurveyQuestions', 'GetSurveyQuestions',
function($scope, $location, GetBasePath, Empty, Wait, Rest, ProcessErrors, function($scope, GetBasePath, Wait, Rest, ProcessErrors,
LaunchJob, $state, GenerateList, InventoryList, CredentialList, ParseTypeChange, LaunchJob, $state, InventoryList, CredentialList, ParseTypeChange,
GetSurveyQuestions) { GetSurveyQuestions) {
var launch_url; var launch_url;

View File

@@ -1,5 +1,5 @@
export default export default
function DeleteJob($state, Find, GetBasePath, Rest, Wait, ProcessErrors, Prompt, Alert, function DeleteJob($state, Find, Rest, Wait, ProcessErrors, Prompt, Alert,
$filter, i18n) { $filter, i18n) {
return function(params) { return function(params) {
var scope = params.scope, var scope = params.scope,
@@ -132,6 +132,6 @@ export default
} }
DeleteJob.$inject = DeleteJob.$inject =
[ '$state', 'Find', 'GetBasePath', 'Rest', 'Wait', [ '$state', 'Find', 'Rest', 'Wait',
'ProcessErrors', 'Prompt', 'Alert', '$filter', 'i18n' 'ProcessErrors', 'Prompt', 'Alert', '$filter', 'i18n'
]; ];

View File

@@ -1,5 +1,5 @@
export default export default
function RelaunchInventory(Find, Wait, Rest, InventoryUpdate, ProcessErrors, GetBasePath) { function RelaunchInventory(Wait, Rest, InventoryUpdate, ProcessErrors, GetBasePath) {
return function(params) { return function(params) {
var scope = params.scope, var scope = params.scope,
id = params.id, id = params.id,
@@ -25,6 +25,6 @@ export default
} }
RelaunchInventory.$inject = RelaunchInventory.$inject =
[ 'Find', 'Wait', 'Rest', [ 'Wait', 'Rest',
'InventoryUpdate', 'ProcessErrors', 'GetBasePath' 'InventoryUpdate', 'ProcessErrors', 'GetBasePath'
]; ];

View File

@@ -10,11 +10,11 @@
* @description This controller's for the jobs page * @description This controller's for the jobs page
*/ */
export default ['$state', '$rootScope', '$log', '$scope', '$compile', '$stateParams', export default ['$state', '$rootScope', '$scope', '$stateParams',
'ClearScope', 'Find', 'DeleteJob', 'RelaunchJob', 'AllJobsList', 'ScheduledJobsList', 'ClearScope', 'Find', 'DeleteJob', 'RelaunchJob',
'GetBasePath', 'Dataset', 'QuerySet', 'ListDefinition', '$interpolate', 'GetBasePath', 'Dataset', 'QuerySet', 'ListDefinition', '$interpolate',
function($state, $rootScope, $log, $scope, $compile, $stateParams, function($state, $rootScope, $scope, $stateParams,
ClearScope, Find, DeleteJob, RelaunchJob, AllJobsList, ScheduledJobsList, ClearScope, Find, DeleteJob, RelaunchJob,
GetBasePath, Dataset, qs, ListDefinition, $interpolate) { GetBasePath, Dataset, qs, ListDefinition, $interpolate) {
ClearScope(); ClearScope();

View File

@@ -7,10 +7,10 @@
import {N_} from "../i18n"; import {N_} from "../i18n";
export default export default
['Wait', '$state', '$scope', '$rootScope', '$location', 'GetBasePath', ['Wait', '$state', '$scope', '$rootScope',
'Rest', 'ProcessErrors', 'CheckLicense', 'moment','$window', 'ProcessErrors', 'CheckLicense', 'moment','$window',
'ConfigService', 'FeaturesService', 'pendoService', 'i18n', 'ConfigService', 'FeaturesService', 'pendoService', 'i18n',
function( Wait, $state, $scope, $rootScope, $location, GetBasePath, Rest, function( Wait, $state, $scope, $rootScope,
ProcessErrors, CheckLicense, moment, $window, ConfigService, ProcessErrors, CheckLicense, moment, $window, ConfigService,
FeaturesService, pendoService, i18n){ FeaturesService, pendoService, i18n){

View File

@@ -15,9 +15,9 @@
*/ */
export default export default
['$http', '$rootScope', '$location', '$cookies', 'GetBasePath', 'Store', '$q', ['$http', '$rootScope', '$cookies', 'GetBasePath', 'Store', '$q',
'$injector', '$injector',
function ($http, $rootScope, $location, $cookies, GetBasePath, Store, $q, function ($http, $rootScope, $cookies, GetBasePath, Store, $q,
$injector) { $injector) {
return { return {
setToken: function (token, expires) { setToken: function (token, expires) {

View File

@@ -12,8 +12,8 @@
export default export default
['$rootScope', 'Alert', 'Rest', 'GetBasePath', 'ProcessErrors', '$cookies', ['$rootScope', 'Alert', 'Rest', 'ProcessErrors', '$cookies',
function ($rootScope, Alert, Rest, GetBasePath, ProcessErrors, $cookies) { function ($rootScope, Alert, Rest, ProcessErrors, $cookies) {
return function (params) { return function (params) {
// set PermissionAddAllowed to true or false based on user access. admins and org admins are granted // set PermissionAddAllowed to true or false based on user access. admins and org admins are granted
// accesss. // accesss.

View File

@@ -54,12 +54,12 @@
* This is usage information. * This is usage information.
*/ */
export default ['$log', '$cookies', '$compile', '$window', '$rootScope', export default ['$log', '$cookies', '$compile', '$rootScope',
'$location', 'Authorization', 'ToggleClass', 'Alert', 'Wait', 'Timer', '$location', 'Authorization', 'Alert', 'Wait', 'Timer',
'Empty', 'ClearScope', '$scope', 'pendoService', 'ConfigService', 'Empty', '$scope', 'pendoService', 'ConfigService',
'CheckLicense', 'FeaturesService', 'SocketService', 'CheckLicense', 'FeaturesService', 'SocketService',
function ($log, $cookies, $compile, $window, $rootScope, $location, function ($log, $cookies, $compile, $rootScope, $location,
Authorization, ToggleClass, Alert, Wait, Timer, Empty, ClearScope, Authorization, Alert, Wait, Timer, Empty,
scope, pendoService, ConfigService, CheckLicense, FeaturesService, scope, pendoService, ConfigService, CheckLicense, FeaturesService,
SocketService) { SocketService) {
var lastPath, lastUser, sessionExpired, loginAgain; var lastPath, lastUser, sessionExpired, loginAgain;

View File

@@ -7,13 +7,13 @@
// import listGenerator from 'tower/shared/list-generator/main'; // import listGenerator from 'tower/shared/list-generator/main';
export default export default
[ 'Wait', '$compile', 'CreateDialog', 'GetBasePath' , [ 'Wait', 'CreateDialog', 'GetBasePath' ,
'SchedulesList', 'Rest' , 'Rest' ,
'ProcessErrors', 'managementJobsListObject', '$rootScope', '$state', 'ProcessErrors', '$rootScope', '$state',
'$scope', 'CreateSelect2', 'i18n', '$scope', 'CreateSelect2', 'i18n',
function( Wait, $compile, CreateDialog, GetBasePath, function( Wait, CreateDialog, GetBasePath,
SchedulesList, Rest, ProcessErrors, Rest, ProcessErrors,
managementJobsListObject, $rootScope, $state, $scope, $rootScope, $state, $scope,
CreateSelect2, i18n) { CreateSelect2, i18n) {
var defaultUrl = GetBasePath('system_job_templates') + "?order_by=name"; var defaultUrl = GetBasePath('system_job_templates') + "?order_by=name";

View File

@@ -4,13 +4,13 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$rootScope', 'Rest', 'Wait', 'NotificationsFormObject', export default ['Rest', 'Wait', 'NotificationsFormObject',
'ProcessErrors', 'GetBasePath', 'Empty', 'Alert', 'ProcessErrors', 'GetBasePath', 'Alert',
'GenerateForm', '$scope', '$state', 'CreateSelect2', 'GetChoices', 'GenerateForm', '$scope', '$state', 'CreateSelect2', 'GetChoices',
'NotificationsTypeChange', 'ParseTypeChange', 'NotificationsTypeChange', 'ParseTypeChange',
function( function(
$rootScope, Rest, Wait, NotificationsFormObject, Rest, Wait, NotificationsFormObject,
ProcessErrors, GetBasePath, Empty, Alert, ProcessErrors, GetBasePath, Alert,
GenerateForm, $scope, $state, CreateSelect2, GetChoices, GenerateForm, $scope, $state, CreateSelect2, GetChoices,
NotificationsTypeChange, ParseTypeChange NotificationsTypeChange, ParseTypeChange
) { ) {

View File

@@ -7,16 +7,16 @@
export default ['Rest', 'Wait', export default ['Rest', 'Wait',
'NotificationsFormObject', 'ProcessErrors', 'GetBasePath', 'NotificationsFormObject', 'ProcessErrors', 'GetBasePath',
'GenerateForm', 'GenerateForm',
'OrganizationList', 'notification_template', 'notification_template',
'$scope', '$state', 'GetChoices', 'CreateSelect2', 'Empty', '$scope', '$state', 'GetChoices', 'CreateSelect2', 'Empty',
'$rootScope', 'NotificationsTypeChange', 'ParseTypeChange', 'NotificationsTypeChange', 'ParseTypeChange',
function( function(
Rest, Wait, Rest, Wait,
NotificationsFormObject, ProcessErrors, GetBasePath, NotificationsFormObject, ProcessErrors, GetBasePath,
GenerateForm, GenerateForm,
OrganizationList, notification_template, notification_template,
$scope, $state, GetChoices, CreateSelect2, Empty, $scope, $state, GetChoices, CreateSelect2, Empty,
$rootScope, NotificationsTypeChange, ParseTypeChange NotificationsTypeChange, ParseTypeChange
) { ) {
var generator = GenerateForm, var generator = GenerateForm,
id = notification_template.id, id = notification_template.id,

View File

@@ -4,14 +4,14 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$rootScope', '$scope', 'Wait', 'generateList', 'NotificationTemplatesList', export default ['$scope', 'Wait', 'NotificationTemplatesList',
'GetBasePath', 'Rest', 'ProcessErrors', 'Prompt', '$state', 'GetChoices', 'GetBasePath', 'Rest', 'ProcessErrors', 'Prompt', '$state',
'Empty', 'Find', 'ngToast', '$compile', '$filter', 'Dataset', 'rbacUiControlService', 'ngToast', '$filter', 'Dataset', 'rbacUiControlService',
'i18n', 'i18n',
function( function(
$rootScope, $scope, Wait, GenerateList, NotificationTemplatesList, $scope, Wait, NotificationTemplatesList,
GetBasePath, Rest, ProcessErrors, Prompt, $state, GetChoices, GetBasePath, Rest, ProcessErrors, Prompt, $state,
Empty, Find, ngToast, $compile, $filter, Dataset, rbacUiControlService, ngToast, $filter, Dataset, rbacUiControlService,
i18n) { i18n) {
var defaultUrl = GetBasePath('notification_templates'), var defaultUrl = GetBasePath('notification_templates'),

View File

@@ -14,8 +14,8 @@
* *
*/ */
export default ['Wait', 'GetBasePath', 'ProcessErrors', 'Rest', export default ['Wait', 'ProcessErrors', 'Rest',
function(Wait, GetBasePath, ProcessErrors, Rest) { function(Wait, ProcessErrors, Rest) {
return function(params) { return function(params) {
var scope = params.scope, var scope = params.scope,
notifier = params.notifier, notifier = params.notifier,

View File

@@ -4,11 +4,12 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$scope', '$location', '$stateParams', 'OrganizationForm', export default ['$scope', '$location', '$stateParams',
'Rest', 'ProcessErrors', 'Prompt', 'ClearScope', 'GetBasePath', 'Wait', 'OrganizationForm', 'Rest', 'ProcessErrors', 'Prompt', 'ClearScope',
'$state', 'ToggleNotification', function($scope, $location, $stateParams, 'GetBasePath', 'Wait', '$state', 'ToggleNotification',
OrganizationForm, Rest, ProcessErrors, Prompt, ClearScope, GetBasePath, function($scope, $location, $stateParams,
Wait, $state, ToggleNotification) { OrganizationForm, Rest, ProcessErrors, Prompt, ClearScope,
GetBasePath, Wait, $state, ToggleNotification) {
ClearScope(); ClearScope();

View File

@@ -11,13 +11,11 @@
* Controller for handling permissions adding * Controller for handling permissions adding
*/ */
export default ['$scope', '$rootScope', 'ProcessErrors', 'GetBasePath', export default ['$scope', '$rootScope', 'ProcessErrors', 'GetBasePath', 'generateList',
'generateList', '$state', 'Rest', '$q', 'Wait', '$window', 'QuerySet', '$state', 'Rest', '$q', 'Wait', '$window', 'QuerySet', 'UserList',
'UserList', function($scope, $rootScope, ProcessErrors, GetBasePath, generateList,
function($scope, $rootScope, ProcessErrors, GetBasePath, generateList,
$state, Rest, $q, Wait, $window, qs, UserList) { $state, Rest, $q, Wait, $window, qs, UserList) {
$scope.$on("linkLists", function() {
$scope.$on("linkLists", function() {
if ($state.current.name.split(".")[1] === "users") { if ($state.current.name.split(".")[1] === "users") {
$scope.addType = "Users"; $scope.addType = "Users";

View File

@@ -6,56 +6,56 @@
/* jshint unused: vars */ /* jshint unused: vars */
import addUsers from './addUsers.controller'; import addUsers from './addUsers.controller';
export default ['Wait', 'templateUrl', '$compile', function(Wait, templateUrl, export default
$compile) { ['Wait', 'templateUrl', '$compile', function(Wait, templateUrl, $compile) {
return { return {
restrict: 'E', restrict: 'E',
scope: { scope: {
addUsersType: '@' addUsersType: '@'
}, },
controller: addUsers, controller: addUsers,
templateUrl: templateUrl('organizations/linkout/addUsers/addUsers'), templateUrl: templateUrl('organizations/linkout/addUsers/addUsers'),
link: function(scope, element, attrs, ctrl) { link: function(scope, element, attrs, ctrl) {
$("body").addClass("is-modalOpen"); $("body").addClass("is-modalOpen");
$("body").append(element); $("body").append(element);
Wait('start'); Wait('start');
scope.$broadcast("linkLists"); scope.$broadcast("linkLists");
setTimeout(function() { setTimeout(function() {
$('#add-users-modal').modal("show"); $('#add-users-modal').modal("show");
}, 200); }, 200);
$('.modal[aria-hidden=false]').each(function () { $('.modal[aria-hidden=false]').each(function () {
if ($(this).attr('id') !== 'add-users-modal') { if ($(this).attr('id') !== 'add-users-modal') {
$(this).modal('hide'); $(this).modal('hide');
} }
}); });
scope.closeModal = function() { scope.closeModal = function() {
$("body").removeClass("is-modalOpen"); $("body").removeClass("is-modalOpen");
$('#add-users-modal').on('hidden.bs.modal', $('#add-users-modal').on('hidden.bs.modal',
function () { function () {
$('.AddUsers').remove(); $('.AddUsers').remove();
}); });
$('#add-users-modal').modal('hide'); $('#add-users-modal').modal('hide');
}; };
scope.$on('closeUsersModal', function() { scope.$on('closeUsersModal', function() {
scope.closeModal(); scope.closeModal();
}); });
scope.compileList = function(html) { scope.compileList = function(html) {
$('#add-users-list').append($compile(html)(scope)); $('#add-users-list').append($compile(html)(scope));
}; };
Wait('stop'); Wait('stop');
window.scrollTo(0,0); window.scrollTo(0,0);
} }
}; };
} }
]; ];

View File

@@ -4,11 +4,13 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$stateParams', '$scope', 'Rest', '$state', '$compile', 'Wait', export default ['$stateParams', '$scope', 'Rest', '$state',
'OrgAdminList', 'OrgAdminsDataset', 'Prompt', 'ProcessErrors', '$compile', 'Wait', 'OrgAdminList',
'GetBasePath', '$filter', 'OrgAdminsDataset',
function($stateParams, $scope, Rest, $state, $compile, Wait, OrgAdminList, 'Prompt', 'ProcessErrors', 'GetBasePath', '$filter',
OrgAdminsDataset, Prompt, ProcessErrors, GetBasePath, $filter) { function($stateParams, $scope, Rest, $state,
$compile, Wait, OrgAdminList, OrgAdminsDataset, Prompt, ProcessErrors,
GetBasePath, $filter) {
var orgBase = GetBasePath('organizations'); var orgBase = GetBasePath('organizations');

View File

@@ -4,14 +4,14 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$scope', '$rootScope', '$location', '$log', export default ['$scope', '$rootScope', '$location',
'$stateParams', '$compile', '$filter', 'Rest', 'Alert', 'InventoryList', '$stateParams', '$compile', '$filter', 'Rest', 'InventoryList',
'generateList', 'Prompt', 'ReturnToCaller', 'OrgInventoryDataset', 'OrgInventoryList', 'OrgInventoryDataset', 'OrgInventoryList',
'ClearScope', 'ProcessErrors', 'GetBasePath', 'Wait', 'Find', 'Empty', '$state', 'ProcessErrors', 'GetBasePath', 'Wait', 'Find', 'Empty', '$state',
function($scope, $rootScope, $location, $log, function($scope, $rootScope, $location,
$stateParams, $compile, $filter, Rest, Alert, InventoryList, $stateParams, $compile, $filter, Rest, InventoryList,
generateList, Prompt, ReturnToCaller, Dataset, OrgInventoryList, Dataset, OrgInventoryList,
ClearScope, ProcessErrors, GetBasePath, Wait, ProcessErrors, GetBasePath, Wait,
Find, Empty, $state) { Find, Empty, $state) {
var list = OrgInventoryList, var list = OrgInventoryList,

View File

@@ -4,12 +4,15 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$scope', '$rootScope', '$stateParams', 'Rest', 'ProcessErrors', export default ['$scope', '$rootScope',
'$stateParams', 'Rest', 'ProcessErrors',
'GetBasePath', 'InitiatePlaybookRun', 'Wait', 'TemplateCopyService', 'GetBasePath', 'InitiatePlaybookRun', 'Wait', 'TemplateCopyService',
'$state', 'OrgJobTemplateList', 'OrgJobTemplateDataset', 'QuerySet', '$state', 'OrgJobTemplateList', 'OrgJobTemplateDataset', 'QuerySet',
function($scope, $rootScope, $stateParams, Rest, ProcessErrors, GetBasePath, function($scope, $rootScope,
InitiatePlaybookRun, Wait, TemplateCopyService, $state, OrgJobTemplateList, $stateParams, Rest, ProcessErrors,
Dataset, qs) { GetBasePath, InitiatePlaybookRun, Wait, TemplateCopyService,
$state, OrgJobTemplateList, Dataset, qs) {
var list = OrgJobTemplateList, var list = OrgJobTemplateList,
orgBase = GetBasePath('organizations'); orgBase = GetBasePath('organizations');

View File

@@ -4,10 +4,11 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$scope', '$stateParams', 'OrgTeamList', 'Rest', export default ['$scope', '$stateParams', 'OrgTeamList', 'Rest', 'OrgTeamsDataset',
'OrgTeamsDataset', 'GetBasePath', 'Wait', '$state', 'GetBasePath', '$state',
function($scope, $stateParams, OrgTeamList, Rest, Dataset, GetBasePath, function($scope, $stateParams, OrgTeamList, Rest, Dataset,
Wait, $state) { GetBasePath, $state) {
var list = OrgTeamList, var list = OrgTeamList,
orgBase = GetBasePath('organizations'); orgBase = GetBasePath('organizations');

View File

@@ -5,10 +5,11 @@
*************************************************/ *************************************************/
export default ['$stateParams', '$scope', 'OrgUserList','Rest', '$state', export default ['$stateParams', '$scope', 'OrgUserList','Rest', '$state',
'$compile', 'Wait', 'OrgUsersDataset', 'Prompt', 'ProcessErrors', '$compile', 'Wait', 'OrgUsersDataset',
'GetBasePath', '$filter', 'Prompt', 'ProcessErrors', 'GetBasePath', '$filter',
function($stateParams, $scope, OrgUserList, Rest, $state, $compile, Wait, function($stateParams, $scope, OrgUserList, Rest, $state,
OrgUsersDataset, Prompt, ProcessErrors, GetBasePath, $filter) { $compile, Wait, OrgUsersDataset, Prompt, ProcessErrors,
GetBasePath, $filter) {
var orgBase = GetBasePath('organizations'); var orgBase = GetBasePath('organizations');

View File

@@ -5,11 +5,11 @@
*************************************************/ *************************************************/
export default ['$stateParams', '$scope', '$rootScope', '$location', export default ['$stateParams', '$scope', '$rootScope',
'$log', '$compile', 'Rest', 'OrganizationList', 'Alert', 'Prompt', 'ClearScope', 'Rest', 'OrganizationList', 'Prompt', 'ClearScope',
'ProcessErrors', 'GetBasePath', 'Wait', '$state', 'rbacUiControlService', '$filter', 'Dataset', 'i18n', 'ProcessErrors', 'GetBasePath', 'Wait', '$state', 'rbacUiControlService', '$filter', 'Dataset', 'i18n',
function($stateParams, $scope, $rootScope, $location, function($stateParams, $scope, $rootScope,
$log, $compile, Rest, OrganizationList, Alert, Prompt, ClearScope, Rest, OrganizationList, Prompt, ClearScope,
ProcessErrors, GetBasePath, Wait, $state, rbacUiControlService, $filter, Dataset, i18n) { ProcessErrors, GetBasePath, Wait, $state, rbacUiControlService, $filter, Dataset, i18n) {
ClearScope(); ClearScope();

View File

@@ -4,7 +4,7 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export function PortalModeJobsController($scope, $rootScope, $state, $stateParams, qs, GetBasePath, PortalJobsList, Dataset) { export function PortalModeJobsController($scope, $state, qs, GetBasePath, PortalJobsList, Dataset) {
var list = PortalJobsList; var list = PortalJobsList;
@@ -38,4 +38,4 @@ export function PortalModeJobsController($scope, $rootScope, $state, $stateParam
}; };
} }
PortalModeJobsController.$inject = ['$scope', '$rootScope', '$state', '$stateParams', 'QuerySet', 'GetBasePath', 'PortalJobsList', 'jobsDataset']; PortalModeJobsController.$inject = ['$scope', '$state', 'QuerySet', 'GetBasePath', 'PortalJobsList', 'jobsDataset'];

View File

@@ -4,11 +4,11 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$scope', '$rootScope', '$log', '$stateParams', 'Rest', 'Alert', export default ['$scope', '$rootScope', '$log', 'Rest', 'Alert',
'ProjectList', 'Prompt', 'ProcessErrors', 'GetBasePath', 'ProjectUpdate', 'ProjectList', 'Prompt', 'ProcessErrors', 'GetBasePath', 'ProjectUpdate',
'Wait', 'Empty', 'Find', 'GetProjectIcon', 'GetProjectToolTip', '$filter', 'Wait', 'Empty', 'Find', 'GetProjectIcon', 'GetProjectToolTip', '$filter',
'$state', 'rbacUiControlService', 'Dataset', 'i18n', 'QuerySet', '$state', 'rbacUiControlService', 'Dataset', 'i18n', 'QuerySet',
function($scope, $rootScope, $log, $stateParams,Rest, Alert, ProjectList, function($scope, $rootScope, $log, Rest, Alert, ProjectList,
Prompt, ProcessErrors, GetBasePath, ProjectUpdate, Wait, Empty, Find, Prompt, ProcessErrors, GetBasePath, ProjectUpdate, Wait, Empty, Find,
GetProjectIcon, GetProjectToolTip, $filter, $state, rbacUiControlService, GetProjectIcon, GetProjectToolTip, $filter, $state, rbacUiControlService,
Dataset, i18n, qs) { Dataset, i18n, qs) {

View File

@@ -55,8 +55,8 @@
*/ */
export default export default
['$http', '$rootScope', '$cookies', '$q', 'Authorization', ['$http', '$rootScope', '$q', 'Authorization',
function ($http, $rootScope, $cookies, $q, Authorization) { function ($http, $rootScope, $q, Authorization) {
return { return {
headers: {}, headers: {},

View File

@@ -4,11 +4,11 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$compile', '$filter', '$state', '$stateParams', 'AddSchedule', 'Wait', export default ['$filter', '$state', '$stateParams', 'AddSchedule', 'Wait',
'$scope', '$rootScope', 'CreateSelect2', 'ParseTypeChange', 'GetBasePath', '$scope', '$rootScope', 'CreateSelect2', 'ParseTypeChange', 'GetBasePath',
'Rest', 'ParamPass', 'ParentObject', 'Rest', 'ParentObject',
function($compile, $filter, $state, $stateParams, AddSchedule, Wait, $scope, function($filter, $state, $stateParams, AddSchedule, Wait, $scope,
$rootScope, CreateSelect2, ParseTypeChange, GetBasePath, Rest, ParamPass, ParentObject) { $rootScope, CreateSelect2, ParseTypeChange, GetBasePath, Rest, ParentObject) {
$scope.processSchedulerEndDt = function(){ $scope.processSchedulerEndDt = function(){
// set the schedulerEndDt to be equal to schedulerStartDt + 1 day @ midnight // set the schedulerEndDt to be equal to schedulerStartDt + 1 day @ midnight
var dt = new Date($scope.schedulerUTCTime); var dt = new Date($scope.schedulerUTCTime);

View File

@@ -1,5 +1,5 @@
export default ['$filter', '$compile', '$state', '$stateParams', 'EditSchedule', 'Wait', '$scope', '$rootScope', 'CreateSelect2', 'ParseTypeChange', 'ParentObject', export default ['$filter', '$state', '$stateParams', 'EditSchedule', 'Wait', '$scope', '$rootScope', 'CreateSelect2', 'ParseTypeChange', 'ParentObject',
function($filter, $compile, $state, $stateParams, EditSchedule, Wait, $scope, $rootScope, CreateSelect2, ParseTypeChange, ParentObject) { function($filter, $state, $stateParams, EditSchedule, Wait, $scope, $rootScope, CreateSelect2, ParseTypeChange, ParentObject) {
$scope.processSchedulerEndDt = function(){ $scope.processSchedulerEndDt = function(){
// set the schedulerEndDt to be equal to schedulerStartDt + 1 day @ midnight // set the schedulerEndDt to be equal to schedulerStartDt + 1 day @ midnight

View File

@@ -12,13 +12,13 @@
export default [ export default [
'$scope', '$compile', '$location', '$stateParams', 'ScheduleList', 'Rest', '$scope', '$location', '$stateParams', 'ScheduleList', 'Rest',
'ProcessErrors', 'ReturnToCaller', 'ClearScope', 'GetBasePath', 'Wait', 'rbacUiControlService', 'ClearScope', 'rbacUiControlService',
'Find', 'ToggleSchedule', 'DeleteSchedule', 'GetChoices', '$q', '$state', 'Dataset', 'ParentObject', 'UnifiedJobsOptions', 'ToggleSchedule', 'DeleteSchedule', '$q', '$state', 'Dataset', 'ParentObject', 'UnifiedJobsOptions',
function($scope, $compile, $location, $stateParams, function($scope, $location, $stateParams,
ScheduleList, Rest, ProcessErrors, ReturnToCaller, ClearScope, ScheduleList, Rest, ClearScope,
GetBasePath, Wait, rbacUiControlService, Find, rbacUiControlService,
ToggleSchedule, DeleteSchedule, GetChoices, ToggleSchedule, DeleteSchedule,
$q, $state, Dataset, ParentObject, UnifiedJobsOptions) { $q, $state, Dataset, ParentObject, UnifiedJobsOptions) {
ClearScope(); ClearScope();

View File

@@ -4,10 +4,8 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$rootScope', 'Rest', 'GetBasePath', 'ProcessErrors', '$http', export default ['$rootScope', 'ConfigService',
'$q', 'ConfigService', function ($rootScope, ConfigService) {
function ($rootScope, Rest, GetBasePath, ProcessErrors, $http, $q,
ConfigService) {
return { return {
get: function(){ get: function(){
if (_.isEmpty($rootScope.features)) { if (_.isEmpty($rootScope.features)) {

View File

@@ -139,13 +139,13 @@ import listGenerator from './list-generator/main';
export default export default
angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerator.name]) angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerator.name])
.factory('GenerateForm', ['$rootScope', '$location', '$compile', 'generateList', .factory('GenerateForm', ['$rootScope', '$compile', 'generateList',
'Attr', 'Icon', 'Column', 'Attr', 'Icon', 'Column',
'NavigationLink', 'HelpCollapse', 'DropDown', 'Empty', 'SelectIcon', 'NavigationLink', 'HelpCollapse', 'Empty', 'SelectIcon',
'Store', 'ActionButton', '$log', 'i18n', 'ActionButton', '$log', 'i18n',
function ($rootScope, $location, $compile, GenerateList, function ($rootScope, $compile, GenerateList,
Attr, Icon, Column, NavigationLink, HelpCollapse, Attr, Icon, Column, NavigationLink, HelpCollapse,
DropDown, Empty, SelectIcon, Store, ActionButton, $log, i18n) { Empty, SelectIcon, ActionButton, $log, i18n) {
return { return {
setForm: function (form) { this.form = form; }, setForm: function (form) { this.form = form; },

View File

@@ -97,9 +97,9 @@
import { templateUrl } from '../../shared/template-url/template-url.factory'; import { templateUrl } from '../../shared/template-url/template-url.factory';
export default ['$location', '$compile', '$rootScope', 'Attr', 'Icon', export default ['$compile', 'Attr', 'Icon',
'Column', 'DropDown', 'NavigationLink', 'SelectIcon', 'ActionButton', 'i18n', 'Column', 'DropDown', 'SelectIcon', 'ActionButton', 'i18n',
function($location, $compile, $rootScope, Attr, Icon, Column, DropDown, NavigationLink, function($compile, Attr, Icon, Column, DropDown,
SelectIcon, ActionButton, i18n) { SelectIcon, ActionButton, i18n) {
return { return {

View File

@@ -4,7 +4,7 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$compile', 'Attr', 'SelectIcon', function($compile, Attr, SelectIcon) { export default ['SelectIcon', function(SelectIcon) {
return { return {
restrict: 'A', restrict: 'A',
scope: {}, scope: {},

View File

@@ -1,5 +1,5 @@
export default export default
function LoadConfig($log, $rootScope, $http, $location, GetBasePath, ProcessErrors, Rest, Store) { function LoadConfig($log, $rootScope, $http, Store) {
return function() { return function() {
// These ettings used to be found in config.js, hardcoded now. // These ettings used to be found in config.js, hardcoded now.
@@ -82,6 +82,6 @@ export default
} }
LoadConfig.$inject = LoadConfig.$inject =
[ '$log', '$rootScope', '$http', '$location', [ '$log', '$rootScope', '$http',
'GetBasePath', 'ProcessErrors', 'Rest', 'Store' 'Store'
]; ];

View File

@@ -1,5 +1,5 @@
export default ['$stateParams', '$scope', '$state', 'QuerySet', 'GetBasePath', 'QuerySet', 'SmartSearchService', 'i18n', export default ['$stateParams', '$scope', '$state', 'GetBasePath', 'QuerySet', 'SmartSearchService', 'i18n',
function($stateParams, $scope, $state, QuerySet, GetBasePath, qs, SmartSearchService, i18n) { function($stateParams, $scope, $state, GetBasePath, qs, SmartSearchService, i18n) {
let path, let path,
defaults, defaults,

View File

@@ -8,10 +8,9 @@ import dedupeVersions from './dedupe-versions';
export default export default
[ 'factScanDataService', [ 'factScanDataService',
'getModuleOptions',
'resolveEmptyVersions', 'resolveEmptyVersions',
'lodashAsPromised', 'lodashAsPromised',
function(factScanDataService, getModuleOptions, resolveEmptyVersions, _) { function(factScanDataService, resolveEmptyVersions, _) {
return function(hostIds, moduleName, leftDate, rightDate) { return function(hostIds, moduleName, leftDate, rightDate) {
var singleHostMode = false; var singleHostMode = false;

View File

@@ -9,8 +9,7 @@ import {compareFacts} from './compare-facts/main';
import {formatFactForDisplay} from './format-facts'; import {formatFactForDisplay} from './format-facts';
import FactTemplate from './compare-facts/fact-template'; import FactTemplate from './compare-facts/fact-template';
function controller($rootScope, function controller($scope,
$scope,
$stateParams, $stateParams,
$location, $location,
$q, $q,
@@ -321,8 +320,7 @@ function controller($rootScope,
} }
export default export default
[ '$rootScope', [ '$scope',
'$scope',
'$stateParams', '$stateParams',
'$location', '$location',
'$q', '$q',

View File

@@ -5,16 +5,16 @@
*************************************************/ *************************************************/
export default export default
[ '$filter', '$scope', '$rootScope', '$compile', '$location', '$log', [ '$filter', '$scope',
'$stateParams', 'JobTemplateForm', 'GenerateForm', 'Rest', 'Alert', '$stateParams', 'JobTemplateForm', 'GenerateForm', 'Rest', 'Alert',
'ProcessErrors', 'ClearScope', 'GetBasePath', 'md5Setup', 'ParseTypeChange', 'Wait', 'ProcessErrors', 'ClearScope', 'GetBasePath', 'md5Setup', 'ParseTypeChange', 'Wait',
'Empty', 'ToJSON', 'CallbackHelpInit', 'Prompt', 'GetChoices', '$state', 'Empty', 'ToJSON', 'CallbackHelpInit', 'GetChoices', '$state',
'CreateSelect2', '$q', 'i18n', 'CreateSelect2', '$q', 'i18n',
function( function(
$filter, $scope, $rootScope, $compile, $filter, $scope,
$location, $log, $stateParams, JobTemplateForm, GenerateForm, Rest, Alert, $stateParams, JobTemplateForm, GenerateForm, Rest, Alert,
ProcessErrors, ClearScope, GetBasePath, md5Setup, ParseTypeChange, Wait, ProcessErrors, ClearScope, GetBasePath, md5Setup, ParseTypeChange, Wait,
Empty, ToJSON, CallbackHelpInit, Prompt, GetChoices, Empty, ToJSON, CallbackHelpInit, GetChoices,
$state, CreateSelect2, $q, i18n $state, CreateSelect2, $q, i18n
) { ) {

View File

@@ -11,19 +11,19 @@
*/ */
export default export default
[ '$filter', '$scope', '$rootScope', '$compile', [ '$filter', '$scope', '$rootScope',
'$location', '$log', '$stateParams', 'JobTemplateForm', 'GenerateForm', '$location', '$stateParams', 'JobTemplateForm', 'GenerateForm',
'Rest', 'Alert', 'ProcessErrors', 'ReturnToCaller', 'ClearScope', 'GetBasePath', 'md5Setup', 'Rest', 'Alert', 'ProcessErrors', 'ClearScope', 'GetBasePath', 'md5Setup',
'ParseTypeChange', 'JobStatusToolTip', 'FormatDate', 'Wait', 'ParseTypeChange', 'Wait',
'Empty', 'Prompt', 'ParseVariableString', 'ToJSON', 'GetChoices', 'CallbackHelpInit', 'Empty', 'Prompt', 'ToJSON', 'GetChoices', 'CallbackHelpInit',
'InitiatePlaybookRun' , 'initSurvey', '$state', 'CreateSelect2', 'InitiatePlaybookRun' , 'initSurvey', '$state', 'CreateSelect2',
'ToggleNotification','$q', 'ToggleNotification','$q',
function( function(
$filter, $scope, $rootScope, $compile, $filter, $scope, $rootScope,
$location, $log, $stateParams, JobTemplateForm, GenerateForm, Rest, Alert, $location, $stateParams, JobTemplateForm, GenerateForm, Rest, Alert,
ProcessErrors, ReturnToCaller, ClearScope, GetBasePath, md5Setup, ProcessErrors, ClearScope, GetBasePath, md5Setup,
ParseTypeChange, JobStatusToolTip, FormatDate, Wait, ParseTypeChange, Wait,
Empty, Prompt, ParseVariableString, ToJSON, GetChoices, CallbackHelpInit, InitiatePlaybookRun, SurveyControllerInit, $state, Empty, Prompt, ToJSON, GetChoices, CallbackHelpInit, InitiatePlaybookRun, SurveyControllerInit, $state,
CreateSelect2, ToggleNotification, $q CreateSelect2, ToggleNotification, $q
) { ) {

View File

@@ -1,6 +1,6 @@
export default export default
function CallbackHelpInit($location, GetBasePath, Rest, JobTemplateForm, GenerateForm, $stateParams, ProcessErrors, ParseTypeChange, function CallbackHelpInit($location, GetBasePath, Rest, JobTemplateForm, GenerateForm, $stateParams, ProcessErrors,
ParseVariableString, Empty, InventoryList, CredentialList, ProjectList, Wait) { ParseVariableString, Empty, CredentialList, Wait) {
return function(params) { return function(params) {
var scope = params.scope, var scope = params.scope,
defaultUrl = GetBasePath('job_templates'), defaultUrl = GetBasePath('job_templates'),
@@ -151,6 +151,6 @@ export default
CallbackHelpInit.$inject = CallbackHelpInit.$inject =
[ '$location', 'GetBasePath', 'Rest', 'JobTemplateForm', 'GenerateForm', [ '$location', 'GetBasePath', 'Rest', 'JobTemplateForm', 'GenerateForm',
'$stateParams', 'ProcessErrors', 'ParseTypeChange', 'ParseVariableString', '$stateParams', 'ProcessErrors', 'ParseVariableString',
'Empty', 'InventoryList', 'CredentialList','ProjectList', 'Wait' 'Empty', 'CredentialList', 'Wait'
]; ];

View File

@@ -4,16 +4,16 @@
* All Rights Reserved * All Rights Reserved
*************************************************/ *************************************************/
export default ['$scope', '$rootScope', '$location', '$stateParams', 'Rest', export default ['$scope', '$rootScope',
'Alert','TemplateList', 'Prompt', 'ClearScope', 'ProcessErrors', 'Alert','TemplateList', 'Prompt', 'ClearScope', 'ProcessErrors',
'GetBasePath', 'InitiatePlaybookRun', 'Wait', '$state', '$filter', 'GetBasePath', 'InitiatePlaybookRun', 'Wait', '$state', '$filter',
'Dataset', 'rbacUiControlService', 'TemplatesService','QuerySet', 'Dataset', 'rbacUiControlService', 'TemplatesService','QuerySet',
'GetChoices', 'TemplateCopyService', 'TemplateCopyService',
function( function(
$scope, $rootScope, $location, $stateParams, Rest, Alert, $scope, $rootScope, Alert,
TemplateList, Prompt, ClearScope, ProcessErrors, GetBasePath, TemplateList, Prompt, ClearScope, ProcessErrors, GetBasePath,
InitiatePlaybookRun, Wait, $state, $filter, Dataset, rbacUiControlService, TemplatesService, InitiatePlaybookRun, Wait, $state, $filter, Dataset, rbacUiControlService, TemplatesService,
qs, GetChoices, TemplateCopyService qs, TemplateCopyService
) { ) {
ClearScope(); ClearScope();

View File

@@ -1,5 +1,5 @@
export default export default
function EditQuestion(GetBasePath, Rest, Wait, ProcessErrors, $compile, GenerateForm, SurveyQuestionForm, CreateSelect2) { function EditQuestion(GenerateForm, CreateSelect2, SurveyQuestionForm) {
return function(params) { return function(params) {
var scope = params.scope, var scope = params.scope,
@@ -94,12 +94,7 @@ export default
} }
EditQuestion.$inject = EditQuestion.$inject =
[ 'GetBasePath', [ 'GenerateForm',
'Rest', 'CreateSelect2',
'Wait', 'questionDefinitionForm'
'ProcessErrors',
'$compile',
'GenerateForm',
'questionDefinitionForm',
'CreateSelect2'
]; ];

View File

@@ -1,5 +1,5 @@
export default export default
function AddFactory($location, $stateParams, ShowSurveyModal, Wait) { function AddFactory(ShowSurveyModal, Wait) {
return function(params) { return function(params) {
var scope = params.scope; var scope = params.scope;
@@ -20,8 +20,6 @@ export default
} }
AddFactory.$inject = AddFactory.$inject =
[ '$location', [ 'showSurvey',
'$stateParams',
'showSurvey',
'Wait' 'Wait'
]; ];

View File

@@ -1,6 +1,6 @@
export default export default
function Init(DeleteSurvey, EditSurvey, AddSurvey, GenerateForm, SurveyQuestionForm, Wait, Alert, function Init(DeleteSurvey, EditSurvey, AddSurvey, GenerateForm, SurveyQuestionForm, Wait, Alert,
GetBasePath, Rest, ProcessErrors, $compile, EditQuestion, CreateSelect2) { GetBasePath, Rest, ProcessErrors, EditQuestion, CreateSelect2) {
return function(params) { return function(params) {
var scope = params.scope, var scope = params.scope,
id = params.id, id = params.id,
@@ -525,7 +525,6 @@ Init.$inject =
'GetBasePath', 'GetBasePath',
'Rest', 'Rest',
'ProcessErrors', 'ProcessErrors',
'$compile',
'editQuestion', 'editQuestion',
'CreateSelect2' 'CreateSelect2'
]; ];

View File

@@ -1,5 +1,5 @@
export default export default
function ShowFactory(Wait, CreateDialog, Empty, $compile) { function ShowFactory(Wait, CreateDialog, $compile) {
return function(params) { return function(params) {
// Set modal dimensions based on viewport width // Set modal dimensions based on viewport width
@@ -47,6 +47,5 @@ export default
ShowFactory.$inject = ShowFactory.$inject =
[ 'Wait', [ 'Wait',
'CreateDialog', 'CreateDialog',
'Empty',
'$compile' '$compile'
]; ];