Merge pull request #2626 from jaredevantabor/fix-1501

Removes trailing slash for retrieving the scheduler partial
This commit is contained in:
Jared Tabor 2018-07-24 17:44:37 -07:00 committed by GitHub
commit 53c9c0b7f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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') {