Merge pull request #23 from wenottingham/rest-branch

Fix assorted UI error messages to reference the correct REST requests.
This commit is contained in:
Matthew Jones 2015-01-19 11:21:46 -05:00
commit df68e45e16
6 changed files with 8 additions and 8 deletions

View File

@ -181,7 +181,7 @@ angular.module('ConfigureTowerHelper', [ 'Utilities', 'RestServices', 'Schedules
})
.error(function(data, status) {
ProcessErrors(scope, data, status, null, { hdr: 'Error!',
msg: 'Failed updating job ' + scope.job_template_id + ' with variables. PUT returned: ' + status });
msg: 'Failed updating job ' + scope.job_template_id + ' with variables. POST returned: ' + status });
});
},
"icon": "fa-rocket",

View File

@ -236,7 +236,7 @@ function($compile, SchedulerInit, Rest, Wait, CustomInventoryList, CustomInvento
})
.error(function (data, status) {
ProcessErrors(scope, data, status, form, { hdr: 'Error!',
msg: 'Failed to add new inventory script. Post returned status: ' + status });
msg: 'Failed to add new inventory script. POST returned status: ' + status });
});
};
@ -341,7 +341,7 @@ function($compile, CustomInventoryList, Rest, Wait, GenerateList, CustomInventor
})
.error(function (data, status) {
ProcessErrors(scope, data, status, form, { hdr: 'Error!',
msg: 'Failed to add new inventory script. Post returned status: ' + status });
msg: 'Failed to add new inventory script. PUT returned status: ' + status });
});
};

View File

@ -97,7 +97,7 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
.error(function (data, status) {
ProcessErrors(scope, data, status, null, { hdr: 'Error!',
msg: 'Failed to retrieve inventory source: ' + group.related.inventory_source +
' POST returned status: ' + status });
' GET returned status: ' + status });
});
}
}

View File

@ -101,7 +101,7 @@ angular.module('JobSubmissionHelper', [ 'RestServices', 'Utilities', 'Credential
})
.error(function(data, status) {
ProcessErrors(scope, data, status, null, { hdr: 'Error!',
msg: 'Failed updating job ' + scope.job_template_id + ' with variables. PUT returned: ' + status });
msg: 'Failed updating job ' + scope.job_template_id + ' with variables. POST returned: ' + status });
});
});

View File

@ -230,7 +230,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper',
})
.error(function (data, status) {
ProcessErrors(scope, data, status, { hdr: 'Error!',
msg: 'Failed to add new survey. Post returned status: ' + status });
msg: 'Failed to delete survey. DELETE returned status: ' + status });
});
}
};
@ -854,7 +854,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper',
})
.error(function (data, status) {
ProcessErrors(scope, data, status, { hdr: 'Error!',
msg: 'Failed to add new survey. Post returned status: ' + status });
msg: 'Failed to add new survey. POST returned status: ' + status });
});
}
};

View File

@ -177,7 +177,7 @@ angular.module('InventoryHelper', ['RestServices', 'Utilities', 'OrganizationLis
})
.error(function (data, status) {
ProcessErrors(scope, data, status, form, { hdr: 'Error!',
msg: 'Failed to update inventory. POST returned status: ' + status });
msg: 'Failed to update inventory. PUT returned status: ' + status });
});
};
}