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