Removed unused/commented code

This commit is contained in:
mabashian 2018-03-14 16:26:02 -04:00
parent 982b83c2d3
commit 9873bab451
No known key found for this signature in database
GPG Key ID: 436B8D5EDC704CE3

View File

@ -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)
])
};
});