mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 20:51:21 -03:30
Removed unused/commented code
This commit is contained in:
parent
982b83c2d3
commit
9873bab451
@ -731,116 +731,6 @@ angular.module('templates', [surveyMaker.name, jobTemplates.name, labels.name, p
|
||||
}
|
||||
};
|
||||
|
||||
// inventoryLookup = {
|
||||
// searchPrefix: 'inventory',
|
||||
// name: 'templates.editWorkflowJobTemplate.workflowMaker.inventory',
|
||||
// url: '/inventory',
|
||||
// data: {
|
||||
// formChildState: true
|
||||
// },
|
||||
// params: {
|
||||
// inventory_search: {
|
||||
// value: {
|
||||
// page_size: '5'
|
||||
// },
|
||||
// squash: true,
|
||||
// dynamic: true
|
||||
// }
|
||||
// },
|
||||
// ncyBreadcrumb: {
|
||||
// skip: true
|
||||
// },
|
||||
// views: {
|
||||
// 'related': {
|
||||
// templateProvider: function(ListDefinition, generateList) {
|
||||
// let list_html = generateList.build({
|
||||
// mode: 'lookup',
|
||||
// list: ListDefinition,
|
||||
// input_type: 'radio'
|
||||
// });
|
||||
// return `<lookup-modal>${list_html}</lookup-modal>`;
|
||||
//
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
// resolve: {
|
||||
// ListDefinition: ['InventoryList', function(InventoryList) {
|
||||
// // mutate the provided list definition here
|
||||
// let list = _.cloneDeep(InventoryList);
|
||||
// list.lookupConfirmText = 'SELECT';
|
||||
// return list;
|
||||
// }],
|
||||
// Dataset: ['ListDefinition', 'QuerySet', '$stateParams', 'GetBasePath',
|
||||
// (list, qs, $stateParams, GetBasePath) => {
|
||||
// let path = GetBasePath(list.name) || GetBasePath(list.basePath);
|
||||
// return qs.search(path, $stateParams[`${list.iterator}_search`]);
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// onExit: function($state) {
|
||||
// if ($state.transition) {
|
||||
// $('#form-modal').modal('hide');
|
||||
// $('.modal-backdrop').remove();
|
||||
// $('body').removeClass('modal-open');
|
||||
// }
|
||||
// },
|
||||
// };
|
||||
//
|
||||
// credentialLookup = {
|
||||
// searchPrefix: 'credential',
|
||||
// name: 'templates.editWorkflowJobTemplate.workflowMaker.credential',
|
||||
// url: '/credential',
|
||||
// data: {
|
||||
// formChildState: true
|
||||
// },
|
||||
// params: {
|
||||
// credential_search: {
|
||||
// value: {
|
||||
// page_size: '5'
|
||||
// },
|
||||
// squash: true,
|
||||
// dynamic: true
|
||||
// }
|
||||
// },
|
||||
// ncyBreadcrumb: {
|
||||
// skip: true
|
||||
// },
|
||||
// views: {
|
||||
// 'related': {
|
||||
// templateProvider: function(ListDefinition, generateList) {
|
||||
// let list_html = generateList.build({
|
||||
// mode: 'lookup',
|
||||
// list: ListDefinition,
|
||||
// input_type: 'radio'
|
||||
// });
|
||||
// return `<lookup-modal>${list_html}</lookup-modal>`;
|
||||
//
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
// resolve: {
|
||||
// ListDefinition: ['CredentialList', function(CredentialList) {
|
||||
// let list = _.cloneDeep(CredentialList);
|
||||
// list.lookupConfirmText = 'SELECT';
|
||||
// return list;
|
||||
// }],
|
||||
// Dataset: ['ListDefinition', 'QuerySet', '$stateParams', 'GetBasePath',
|
||||
// (list, qs, $stateParams, GetBasePath) => {
|
||||
// let path = GetBasePath(list.name) || GetBasePath(list.basePath);
|
||||
// return qs.search(path, $stateParams[`${list.iterator}_search`]);
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// onExit: function($state) {
|
||||
// if ($state.transition) {
|
||||
// $('#form-modal').modal('hide');
|
||||
// $('.modal-backdrop').remove();
|
||||
// $('body').removeClass('modal-open');
|
||||
// }
|
||||
// },
|
||||
// };
|
||||
|
||||
|
||||
return Promise.all([
|
||||
addJobTemplate,
|
||||
editJobTemplate,
|
||||
@ -852,9 +742,7 @@ angular.module('templates', [surveyMaker.name, jobTemplates.name, labels.name, p
|
||||
return result.concat(definition.states);
|
||||
}, [
|
||||
stateExtender.buildDefinition(listRoute),
|
||||
stateExtender.buildDefinition(workflowMaker),
|
||||
// stateExtender.buildDefinition(inventoryLookup),
|
||||
// stateExtender.buildDefinition(credentialLookup)
|
||||
stateExtender.buildDefinition(workflowMaker)
|
||||
])
|
||||
};
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user