KEYCLOAK-115 fixing message headers
This commit is contained in:
parent
508a9a1e6b
commit
2f9aa14a7d
3 changed files with 8 additions and 7 deletions
|
@ -65,7 +65,7 @@
|
||||||
|
|
||||||
|
|
||||||
<div class="feedback-aligner" data-ng-show="notification" data-ng-click="notification = null">
|
<div class="feedback-aligner" data-ng-show="notification" data-ng-click="notification = null">
|
||||||
<div class="alert alert-{{notification.type}}"><strong>Success!</strong> {{notification.message}}</div>
|
<div class="alert alert-{{notification.type}}"><strong>{{notification.header}}</strong> {{notification.message}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="wrap">
|
<div id="wrap">
|
||||||
|
|
|
@ -55,9 +55,10 @@ module.factory('Notifications', function($rootScope, $timeout) {
|
||||||
$rootScope.notifications = [];
|
$rootScope.notifications = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
notifications.message = function(type, message) {
|
notifications.message = function(type, header, message) {
|
||||||
$rootScope.notification = {
|
$rootScope.notification = {
|
||||||
type : type,
|
type : type,
|
||||||
|
header: header,
|
||||||
message : message
|
message : message
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -65,19 +66,19 @@ module.factory('Notifications', function($rootScope, $timeout) {
|
||||||
}
|
}
|
||||||
|
|
||||||
notifications.info = function(message) {
|
notifications.info = function(message) {
|
||||||
notifications.message("info", message);
|
notifications.message("info", "Info!", message);
|
||||||
};
|
};
|
||||||
|
|
||||||
notifications.success = function(message) {
|
notifications.success = function(message) {
|
||||||
notifications.message("success", message);
|
notifications.message("success", "Success!", message);
|
||||||
};
|
};
|
||||||
|
|
||||||
notifications.error = function(message) {
|
notifications.error = function(message) {
|
||||||
notifications.message("error", message);
|
notifications.message("error", "Error!", message);
|
||||||
};
|
};
|
||||||
|
|
||||||
notifications.warn = function(message) {
|
notifications.warn = function(message) {
|
||||||
notifications.message("warn", message);
|
notifications.message("warn", "Warning!", message);
|
||||||
};
|
};
|
||||||
|
|
||||||
return notifications;
|
return notifications;
|
||||||
|
|
|
@ -253,7 +253,7 @@ public class RealmManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rep.isAccountManagement() != null && rep.isAccountManagement()) {
|
if (rep.getAccountManagement() != null && rep.getAccountManagement()) {
|
||||||
enableAccountManagement(newRealm);
|
enableAccountManagement(newRealm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue