mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 03:17:39 -02:30
Switching to $http service instead of Rest service.
Because the Rest.setUrl function adds a trailing slash to the URL, which is unnecessary for a partial.
This commit is contained in:
@@ -346,7 +346,7 @@ const jobsSchedulesEditRoute = {
|
|||||||
},
|
},
|
||||||
views: {
|
views: {
|
||||||
'form':{
|
'form':{
|
||||||
templateProvider: function(ParentObject, Rest){
|
templateProvider: function(ParentObject, $http){
|
||||||
let path;
|
let path;
|
||||||
if(ParentObject.type === 'system_job_template'){
|
if(ParentObject.type === 'system_job_template'){
|
||||||
path = templateUrl('management-jobs/scheduler/schedulerForm');
|
path = templateUrl('management-jobs/scheduler/schedulerForm');
|
||||||
@@ -354,8 +354,7 @@ const jobsSchedulesEditRoute = {
|
|||||||
else {
|
else {
|
||||||
path = templateUrl('scheduler/schedulerForm');
|
path = templateUrl('scheduler/schedulerForm');
|
||||||
}
|
}
|
||||||
Rest.setUrl(path);
|
return $http.get(path).then(response => response.data);
|
||||||
return Rest.get(path).then(response => response.data);
|
|
||||||
},
|
},
|
||||||
controllerProvider: function(ParentObject){
|
controllerProvider: function(ParentObject){
|
||||||
if (ParentObject.type === 'system_job_template') {
|
if (ParentObject.type === 'system_job_template') {
|
||||||
|
|||||||
Reference in New Issue
Block a user