mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 10:57:35 -02:30
Removed unused/commented code
This commit is contained in:
@@ -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([
|
return Promise.all([
|
||||||
addJobTemplate,
|
addJobTemplate,
|
||||||
editJobTemplate,
|
editJobTemplate,
|
||||||
@@ -852,9 +742,7 @@ angular.module('templates', [surveyMaker.name, jobTemplates.name, labels.name, p
|
|||||||
return result.concat(definition.states);
|
return result.concat(definition.states);
|
||||||
}, [
|
}, [
|
||||||
stateExtender.buildDefinition(listRoute),
|
stateExtender.buildDefinition(listRoute),
|
||||||
stateExtender.buildDefinition(workflowMaker),
|
stateExtender.buildDefinition(workflowMaker)
|
||||||
// stateExtender.buildDefinition(inventoryLookup),
|
|
||||||
// stateExtender.buildDefinition(credentialLookup)
|
|
||||||
])
|
])
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user