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
|
@ -3,7 +3,7 @@
|
|||
* callbacks. Any method defined on the server is exposed here as an equivalent method. Also
|
||||
* defines some helper functions for working with API responses.
|
||||
*/
|
||||
angular.module('quay').factory('ApiService', ['Restangular', '$q', function(Restangular, $q) {
|
||||
angular.module('quay').factory('ApiService', ['Restangular', '$q', 'UtilService', function(Restangular, $q, UtilService) {
|
||||
var apiService = {};
|
||||
|
||||
var getResource = function(path, opt_background) {
|
||||
|
@ -313,6 +313,8 @@ angular.module('quay').factory('ApiService', ['Restangular', '$q', function(Rest
|
|||
}
|
||||
}
|
||||
|
||||
message = UtilService.stringToHTML(message);
|
||||
|
||||
bootbox.dialog({
|
||||
"message": message,
|
||||
"title": defaultMessage,
|
||||
|
|
Reference in a new issue