mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
cleanup teams
This commit is contained in:
parent
f74f866b81
commit
8688e3c6a1
@ -138,8 +138,6 @@ var tower = angular.module('Tower', [
|
||||
'HostListDefinition',
|
||||
'GroupFormDefinition',
|
||||
'GroupListDefinition',
|
||||
'TeamsListDefinition',
|
||||
'TeamFormDefinition',
|
||||
'TemplatesListDefinition',
|
||||
'PortalJobTemplatesListDefinition',
|
||||
'JobTemplateFormDefinition',
|
||||
|
||||
@ -18,7 +18,6 @@ import JobVarsPrompt from "./forms/JobVarsPrompt";
|
||||
import LogViewerOptions from "./forms/LogViewerOptions";
|
||||
import LogViewerStatus from "./forms/LogViewerStatus";
|
||||
import Organizations from "./forms/Organizations";
|
||||
import Teams from "./forms/Teams";
|
||||
import Users from "./forms/Users";
|
||||
import WorkflowMaker from "./forms/WorkflowMaker";
|
||||
import Workflows from "./forms/Workflows";
|
||||
@ -39,7 +38,6 @@ export
|
||||
LogViewerOptions,
|
||||
LogViewerStatus,
|
||||
Organizations,
|
||||
Teams,
|
||||
Users,
|
||||
WorkflowMaker,
|
||||
Workflows
|
||||
|
||||
@ -21,7 +21,6 @@ import PortalJobs from "./lists/PortalJobs";
|
||||
import ScheduledJobs from "./lists/ScheduledJobs";
|
||||
import Schedules from "./lists/Schedules";
|
||||
import Streams from "./lists/Streams";
|
||||
import Teams from "./lists/Teams";
|
||||
import Templates from "./lists/Templates";
|
||||
import Users from "./lists/Users";
|
||||
|
||||
@ -43,7 +42,6 @@ export
|
||||
ScheduledJobs,
|
||||
Schedules,
|
||||
Streams,
|
||||
Teams,
|
||||
Templates,
|
||||
Users
|
||||
};
|
||||
|
||||
@ -4,10 +4,10 @@
|
||||
* All Rights Reserved
|
||||
*************************************************/
|
||||
|
||||
export default ['$scope', '$rootScope', '$stateParams', 'TeamForm', 'GenerateForm',
|
||||
'Rest', 'Alert', 'ProcessErrors', 'ClearScope', 'GetBasePath', 'Wait', '$state',
|
||||
function($scope, $rootScope, $stateParams, TeamForm, GenerateForm, Rest, Alert, ProcessErrors,
|
||||
ClearScope, GetBasePath, Wait, $state) {
|
||||
export default ['$scope', '$rootScope', 'TeamForm', 'GenerateForm', 'Rest',
|
||||
'Alert', 'ProcessErrors', 'ClearScope', 'GetBasePath', 'Wait', '$state',
|
||||
function($scope, $rootScope, TeamForm, GenerateForm, Rest, Alert,
|
||||
ProcessErrors, ClearScope, GetBasePath, Wait, $state) {
|
||||
|
||||
ClearScope('htmlTemplate'); //Garbage collection. Don't leave behind any listeners/watchers from the prior
|
||||
//$scope.
|
||||
|
||||
@ -6,9 +6,8 @@
|
||||
|
||||
export default ['$scope', '$rootScope', '$stateParams', 'TeamForm', 'Rest',
|
||||
'ProcessErrors', 'ClearScope', 'GetBasePath', 'Wait', '$state',
|
||||
function($scope, $rootScope, $stateParams,
|
||||
TeamForm, Rest, ProcessErrors, ClearScope, GetBasePath, Wait, $state) {
|
||||
|
||||
function($scope, $rootScope, $stateParams, TeamForm, Rest, ProcessErrors,
|
||||
ClearScope, GetBasePath, Wait, $state) {
|
||||
ClearScope();
|
||||
|
||||
var form = TeamForm,
|
||||
|
||||
@ -4,11 +4,10 @@
|
||||
* All Rights Reserved
|
||||
*************************************************/
|
||||
|
||||
export default ['$scope', '$rootScope', '$log',
|
||||
'$stateParams', 'Rest', 'Alert', 'TeamList', 'Prompt', 'ClearScope',
|
||||
'ProcessErrors', 'GetBasePath', 'Wait', '$state', '$filter', 'rbacUiControlService', 'Dataset',
|
||||
function($scope, $rootScope, $log, $stateParams,
|
||||
Rest, Alert, TeamList, Prompt, ClearScope, ProcessErrors,
|
||||
export default ['$scope', 'Rest', 'TeamList', 'Prompt', 'ClearScope',
|
||||
'ProcessErrors', 'GetBasePath', 'Wait', '$state', '$filter',
|
||||
'rbacUiControlService', 'Dataset',
|
||||
function($scope, Rest, TeamList, Prompt, ClearScope, ProcessErrors,
|
||||
GetBasePath, Wait, $state, $filter, rbacUiControlService, Dataset) {
|
||||
|
||||
ClearScope();
|
||||
|
||||
@ -7,6 +7,8 @@
|
||||
import TeamsList from './list/teams-list.controller';
|
||||
import TeamsAdd from './add/teams-add.controller';
|
||||
import TeamsEdit from './edit/teams-edit.controller';
|
||||
import TeamList from './teams.list';
|
||||
import TeamForm from './teams.form';
|
||||
import { N_ } from '../i18n';
|
||||
|
||||
export default
|
||||
@ -14,6 +16,8 @@ angular.module('Teams', [])
|
||||
.controller('TeamsList', TeamsList)
|
||||
.controller('TeamsAdd', TeamsAdd)
|
||||
.controller('TeamsEdit', TeamsEdit)
|
||||
.factory('TeamList', TeamList)
|
||||
.factory('TeamForm', TeamForm)
|
||||
.config(['$stateProvider', 'stateDefinitionsProvider',
|
||||
function($stateProvider, stateDefinitionsProvider) {
|
||||
let stateDefinitions = stateDefinitionsProvider.$get();
|
||||
|
||||
@ -10,9 +10,7 @@
|
||||
* @description This form is for adding/editing teams
|
||||
*/
|
||||
|
||||
export default
|
||||
angular.module('TeamFormDefinition', [])
|
||||
.factory('TeamForm', ['i18n', function(i18n) {
|
||||
export default ['i18n', function(i18n) {
|
||||
return {
|
||||
|
||||
addTitle: i18n._('NEW TEAM'), //Legend in add mode
|
||||
@ -162,4 +160,4 @@ export default
|
||||
}
|
||||
}
|
||||
},
|
||||
};}]); //InventoryForm
|
||||
};}];
|
||||
@ -5,9 +5,7 @@
|
||||
*************************************************/
|
||||
|
||||
|
||||
export default
|
||||
angular.module('TeamsListDefinition', [])
|
||||
.factory('TeamList', ['i18n', function(i18n) {
|
||||
export default ['i18n', function(i18n) {
|
||||
return {
|
||||
|
||||
name: 'teams',
|
||||
@ -83,4 +81,4 @@ export default
|
||||
ngShow: 'team.summary_fields.user_capabilities.delete'
|
||||
}
|
||||
}
|
||||
};}]);
|
||||
};}];
|
||||
Loading…
x
Reference in New Issue
Block a user