mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03: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:
parent
c878c027f5
commit
1daba7ffb3
@ -346,7 +346,7 @@ const jobsSchedulesEditRoute = {
|
||||
},
|
||||
views: {
|
||||
'form':{
|
||||
templateProvider: function(ParentObject, Rest){
|
||||
templateProvider: function(ParentObject, $http){
|
||||
let path;
|
||||
if(ParentObject.type === 'system_job_template'){
|
||||
path = templateUrl('management-jobs/scheduler/schedulerForm');
|
||||
@ -354,8 +354,7 @@ const jobsSchedulesEditRoute = {
|
||||
else {
|
||||
path = templateUrl('scheduler/schedulerForm');
|
||||
}
|
||||
Rest.setUrl(path);
|
||||
return Rest.get(path).then(response => response.data);
|
||||
return $http.get(path).then(response => response.data);
|
||||
},
|
||||
controllerProvider: function(ParentObject){
|
||||
if (ParentObject.type === 'system_job_template') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user