mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
cleanup users
This commit is contained in:
parent
8688e3c6a1
commit
a548aa72e0
@ -124,10 +124,8 @@ var tower = angular.module('Tower', [
|
||||
//'templates',
|
||||
'Utilities',
|
||||
'OrganizationFormDefinition',
|
||||
'UserFormDefinition',
|
||||
'OrganizationListDefinition',
|
||||
'templates',
|
||||
'UserListDefinition',
|
||||
'PromptDialog',
|
||||
'AWDirectives',
|
||||
'InventoriesListDefinition',
|
||||
|
||||
@ -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 Users from "./forms/Users";
|
||||
import WorkflowMaker from "./forms/WorkflowMaker";
|
||||
import Workflows from "./forms/Workflows";
|
||||
|
||||
@ -38,7 +37,6 @@ export
|
||||
LogViewerOptions,
|
||||
LogViewerStatus,
|
||||
Organizations,
|
||||
Users,
|
||||
WorkflowMaker,
|
||||
Workflows
|
||||
};
|
||||
|
||||
@ -22,7 +22,6 @@ import ScheduledJobs from "./lists/ScheduledJobs";
|
||||
import Schedules from "./lists/Schedules";
|
||||
import Streams from "./lists/Streams";
|
||||
import Templates from "./lists/Templates";
|
||||
import Users from "./lists/Users";
|
||||
|
||||
export
|
||||
{ CompletedJobs,
|
||||
@ -42,6 +41,5 @@ export
|
||||
ScheduledJobs,
|
||||
Schedules,
|
||||
Streams,
|
||||
Templates,
|
||||
Users
|
||||
Templates
|
||||
};
|
||||
|
||||
@ -12,13 +12,12 @@ const user_type_options = [
|
||||
{ type: 'system_administrator', label: N_('System Administrator') },
|
||||
];
|
||||
|
||||
export default ['$scope', '$rootScope', '$stateParams', 'UserForm', 'GenerateForm',
|
||||
'Rest', 'Alert', 'ProcessErrors', 'ReturnToCaller', 'ClearScope', 'GetBasePath',
|
||||
export default ['$scope', '$rootScope', 'UserForm', 'GenerateForm', 'Rest',
|
||||
'Alert', 'ProcessErrors', 'ReturnToCaller', 'ClearScope', 'GetBasePath',
|
||||
'Wait', 'CreateSelect2', '$state', '$location', 'i18n',
|
||||
function($scope, $rootScope, $stateParams, UserForm,
|
||||
GenerateForm, Rest, Alert, ProcessErrors, ReturnToCaller, ClearScope,
|
||||
GetBasePath, Wait, CreateSelect2, $state, $location, i18n) {
|
||||
|
||||
function($scope, $rootScope, UserForm, GenerateForm, Rest, Alert,
|
||||
ProcessErrors, ReturnToCaller, ClearScope, GetBasePath, Wait, CreateSelect2,
|
||||
$state, $location, i18n) {
|
||||
ClearScope();
|
||||
|
||||
var defaultUrl = GetBasePath('organizations'),
|
||||
|
||||
@ -12,11 +12,10 @@ const user_type_options = [
|
||||
{ type: 'system_administrator', label: N_('System Administrator') },
|
||||
];
|
||||
|
||||
export default ['$scope', '$rootScope', '$location',
|
||||
'$stateParams', 'UserForm', 'Rest', 'ProcessErrors', 'ClearScope', 'GetBasePath',
|
||||
'Wait', 'CreateSelect2', '$state', 'i18n',
|
||||
function($scope, $rootScope, $location,
|
||||
$stateParams, UserForm, Rest, ProcessErrors,
|
||||
export default ['$scope', '$rootScope', '$stateParams', 'UserForm', 'Rest',
|
||||
'ProcessErrors', 'ClearScope', 'GetBasePath', 'Wait', 'CreateSelect2',
|
||||
'$state', 'i18n',
|
||||
function($scope, $rootScope, $stateParams, UserForm, Rest, ProcessErrors,
|
||||
ClearScope, GetBasePath, Wait, CreateSelect2, $state, i18n) {
|
||||
|
||||
for (var i = 0; i < user_type_options.length; i++) {
|
||||
|
||||
@ -12,12 +12,12 @@ const user_type_options = [
|
||||
{ type: 'system_administrator', label: N_('System Administrator') },
|
||||
];
|
||||
|
||||
export default ['$scope', '$rootScope', '$stateParams',
|
||||
'Rest', 'Alert', 'UserList', 'Prompt', 'ClearScope', 'ProcessErrors', 'GetBasePath',
|
||||
'Wait', '$state', '$filter', 'rbacUiControlService', 'Dataset', 'i18n',
|
||||
function($scope, $rootScope, $stateParams,
|
||||
Rest, Alert, UserList, Prompt, ClearScope, ProcessErrors, GetBasePath,
|
||||
Wait, $state, $filter, rbacUiControlService, Dataset, i18n) {
|
||||
export default ['$scope', '$rootScope', 'Rest', 'UserList', 'Prompt',
|
||||
'ClearScope', 'ProcessErrors', 'GetBasePath', 'Wait', '$state', '$filter',
|
||||
'rbacUiControlService', 'Dataset', 'i18n',
|
||||
function($scope, $rootScope, Rest, UserList, Prompt, ClearScope,
|
||||
ProcessErrors, GetBasePath, Wait, $state, $filter, rbacUiControlService,
|
||||
Dataset, i18n) {
|
||||
|
||||
for (var i = 0; i < user_type_options.length; i++) {
|
||||
user_type_options[i].label = i18n._(user_type_options[i].label);
|
||||
|
||||
@ -7,6 +7,8 @@
|
||||
import UsersList from './list/users-list.controller';
|
||||
import UsersAdd from './add/users-add.controller';
|
||||
import UsersEdit from './edit/users-edit.controller';
|
||||
import UserForm from './users.form';
|
||||
import UserList from './users.list';
|
||||
import { N_ } from '../i18n';
|
||||
|
||||
export default
|
||||
@ -14,6 +16,8 @@ angular.module('Users', [])
|
||||
.controller('UsersList', UsersList)
|
||||
.controller('UsersAdd', UsersAdd)
|
||||
.controller('UsersEdit', UsersEdit)
|
||||
.factory('UserForm', UserForm)
|
||||
.factory('UserList', UserList)
|
||||
.config(['$stateProvider', 'stateDefinitionsProvider',
|
||||
function($stateProvider, stateDefinitionsProvider) {
|
||||
let stateDefinitions = stateDefinitionsProvider.$get();
|
||||
|
||||
@ -10,9 +10,7 @@
|
||||
* @description This form is for adding/editing users
|
||||
*/
|
||||
|
||||
export default
|
||||
angular.module('UserFormDefinition', [])
|
||||
.factory('UserForm', ['i18n', function(i18n) {
|
||||
export default ['i18n', function(i18n) {
|
||||
return {
|
||||
|
||||
addTitle: i18n._('NEW USER'),
|
||||
@ -229,4 +227,4 @@ export default
|
||||
}
|
||||
}
|
||||
|
||||
};}]);
|
||||
};}];
|
||||
@ -5,9 +5,7 @@
|
||||
*************************************************/
|
||||
|
||||
|
||||
export default
|
||||
angular.module('UserListDefinition', [])
|
||||
.factory('UserList', ['i18n', function(i18n) {
|
||||
export default ['i18n', function(i18n) {
|
||||
return {
|
||||
|
||||
name: 'users',
|
||||
@ -87,4 +85,4 @@ export default
|
||||
ngShow: 'user.summary_fields.user_capabilities.delete'
|
||||
}
|
||||
}
|
||||
};}]);
|
||||
};}];
|
||||
Loading…
x
Reference in New Issue
Block a user