1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Changing 'template_id' to 'id' for job templates

which was recently changed for bread crumb names
This commit is contained in:
Jared Tabor 2016-06-07 11:22:41 -07:00
parent 8adcc4092c
commit f1f36f44b2
3 changed files with 4 additions and 4 deletions

View File

@ -8,10 +8,10 @@ import {templateUrl} from '../../shared/template-url/template-url.factory';
export default {
name: 'inventoryJobTemplateEdit',
url: '/inventories/:inventory_id/job_templates/:template_id',
url: '/inventories/:inventory_id/job_templates/:id',
templateUrl: templateUrl('job-templates/edit/job-templates-edit'),
controller: 'JobTemplatesEdit',
data: {
activityStreamId: 'template_id'
activityStreamId: 'id'
}
};

View File

@ -66,7 +66,7 @@ export default
};
$scope.editJobTemplate = function (id) {
$state.transitionTo('jobTemplates.edit', {template_id: id});
$state.transitionTo('jobTemplates.edit', {id: id});
};
$scope.deleteJobTemplate = function (id, name) {

View File

@ -72,7 +72,7 @@ export default ['$scope', '$rootScope', '$location', '$log',
};
$scope.editJobTemplate = function (id) {
$state.transitionTo('jobTemplates.edit', {template_id: id});
$state.transitionTo('jobTemplates.edit', {id: id});
};
$scope.submitJob = function (id) {