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:
parent
8adcc4092c
commit
f1f36f44b2
@ -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'
|
||||
}
|
||||
};
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user