mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 20:00:43 -03:30
Merge pull request #4295 from JakobP/bug/3857-improve-error-message
Fix #3857. More informative error message for job templates Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
commit
bda42332b7
@ -124,7 +124,7 @@ angular.module('templates', [surveyMaker.name, jobTemplates.name, labels.name, p
|
||||
.then(function(data) {
|
||||
if (!data.actions.POST) {
|
||||
$state.go("^");
|
||||
Alert(i18n._('Permission Error'), i18n._('You do not have permission to add a job template.'), 'alert-info');
|
||||
Alert(i18n._('Permission Error'), i18n._('You do not have permission to add a job template, or there are no projects available.'), 'alert-info');
|
||||
}
|
||||
}).catch(function(response){
|
||||
ProcessErrors(null, response.data, response.status, null, {
|
||||
@ -850,4 +850,4 @@ angular.module('templates', [surveyMaker.name, jobTemplates.name, labels.name, p
|
||||
$stateProvider.state(stateTree);
|
||||
|
||||
}
|
||||
]);
|
||||
]);
|
||||
Loading…
x
Reference in New Issue
Block a user