diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 5c07ff323..4fc7b78dc 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -1104,12 +1104,31 @@ * Create a notification. Can be improved. */ createNotice: function (severity, message, persist) { - var c = severity; + var c = severity, + icon; if (persist) { c += ' persist'; } + + switch (severity) { + case 'success': + icon = 'check-circle'; + break; + case 'error': + icon = 'times'; + break; + case 'warning': + icon = 'exclamation-triangle'; + break; + case 'info': + icon = 'info-circle'; + break; + } + var $notice = $( - '
  • ' + this.icinga.utils.escape(message) + '
  • ' + '
  • ' + + '' + + this.icinga.utils.escape(message) + '
  • ' ).appendTo($('#notifications')); if (!persist) {