mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-25 16:42:34 +00:00
KEYCLOAK-115 fixing message headers
This commit is contained in:
committed by
Stian Thorgersen
parent
508a9a1e6b
commit
2f9aa14a7d
@@ -65,7 +65,7 @@
|
||||
|
||||
|
||||
<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 id="wrap">
|
||||
|
||||
@@ -55,9 +55,10 @@ module.factory('Notifications', function($rootScope, $timeout) {
|
||||
$rootScope.notifications = [];
|
||||
}
|
||||
|
||||
notifications.message = function(type, message) {
|
||||
notifications.message = function(type, header, message) {
|
||||
$rootScope.notification = {
|
||||
type : type,
|
||||
header: header,
|
||||
message : message
|
||||
};
|
||||
|
||||
@@ -65,19 +66,19 @@ module.factory('Notifications', function($rootScope, $timeout) {
|
||||
}
|
||||
|
||||
notifications.info = function(message) {
|
||||
notifications.message("info", message);
|
||||
notifications.message("info", "Info!", message);
|
||||
};
|
||||
|
||||
notifications.success = function(message) {
|
||||
notifications.message("success", message);
|
||||
notifications.message("success", "Success!", message);
|
||||
};
|
||||
|
||||
notifications.error = function(message) {
|
||||
notifications.message("error", message);
|
||||
notifications.message("error", "Error!", message);
|
||||
};
|
||||
|
||||
notifications.warn = function(message) {
|
||||
notifications.message("warn", message);
|
||||
notifications.message("warn", "Warning!", message);
|
||||
};
|
||||
|
||||
return notifications;
|
||||
|
||||
@@ -253,7 +253,7 @@ public class RealmManager {
|
||||
}
|
||||
}
|
||||
|
||||
if (rep.isAccountManagement() != null && rep.isAccountManagement()) {
|
||||
if (rep.getAccountManagement() != null && rep.getAccountManagement()) {
|
||||
enableAccountManagement(newRealm);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user