Make sure to escape error messages and add clarification to the trigger activation dialog
This commit is contained in:
parent
4feb2a2032
commit
628d80895d
3 changed files with 12 additions and 1 deletions
|
@ -111,6 +111,9 @@ angular.module('quay').directive('setupTriggerDialog', function () {
|
|||
var errorHandler = ApiService.errorDisplay('Cannot activate build trigger', function(resp) {
|
||||
$scope.hide();
|
||||
$scope.canceled({'trigger': $scope.trigger});
|
||||
|
||||
return ApiService.getErrorMessage(resp) +
|
||||
'\n\nThis usually means that you do not have admin access on the repository.';
|
||||
});
|
||||
|
||||
ApiService.activateBuildTrigger(data, params).then(function(resp) {
|
||||
|
|
Reference in a new issue