@@ -343,6 +343,7 @@ module.exports = function(crowi, app) {
// break;
default:
logger.error('GlobalNotificationSetting Type Error: undefined type');
+ req.flash('errorMessage', 'Error occurred in create a new global notification setting: undefined notification type');
break;
}
@@ -64,6 +64,11 @@
if (res.ok) {
$target.closest('tr').remove();
+ else {
+ $('.admin-notification > .row > .col-md-9').prepend(
+ '<div class=\"alert alert-danger\">Error occurred in deleting global notifcation setting.</div>'
+ );
+ }
});
@@ -73,6 +78,11 @@
// do something
</script>