mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
webui: support global notifications in all containers
Global notifications were limited to "main" container. Now they have their own container which is displayed over other ones. It makes them usable everywhere. Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
parent
72a107c9d7
commit
d9a7fcb5e1
@ -89,6 +89,12 @@ define([
|
|||||||
var simple_container = new FacetContainer();
|
var simple_container = new FacetContainer();
|
||||||
simple_container.container_node = body_node;
|
simple_container.container_node = body_node;
|
||||||
|
|
||||||
|
var notification_container = new FacetContainer({
|
||||||
|
container_node: body_node,
|
||||||
|
id: "notification",
|
||||||
|
'class': ''
|
||||||
|
});
|
||||||
|
|
||||||
this.containers = {
|
this.containers = {
|
||||||
// Default view
|
// Default view
|
||||||
main: {
|
main: {
|
||||||
@ -117,6 +123,7 @@ define([
|
|||||||
this.app_widget.hide();
|
this.app_widget.hide();
|
||||||
simple_container.render();
|
simple_container.render();
|
||||||
simple_container.hide();
|
simple_container.hide();
|
||||||
|
notification_container.render();
|
||||||
var load_facet = reg.facet.get('load');
|
var load_facet = reg.facet.get('load');
|
||||||
this.show_facet(load_facet);
|
this.show_facet(load_facet);
|
||||||
IPA.opened_dialogs.start_handling(this);
|
IPA.opened_dialogs.start_handling(this);
|
||||||
|
@ -1177,7 +1177,7 @@ IPA.notify = function(message, type, timeout) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
notification_area.appendTo('#container');
|
notification_area.appendTo('#notification');
|
||||||
}
|
}
|
||||||
notification_area.empty();
|
notification_area.empty();
|
||||||
|
|
||||||
|
@ -41,6 +41,8 @@ define(['dojo/_base/declare',
|
|||||||
|
|
||||||
id: 'simple-container',
|
id: 'simple-container',
|
||||||
|
|
||||||
|
'class': 'app-container',
|
||||||
|
|
||||||
//nodes:
|
//nodes:
|
||||||
dom_node: null,
|
dom_node: null,
|
||||||
|
|
||||||
@ -52,7 +54,7 @@ define(['dojo/_base/declare',
|
|||||||
|
|
||||||
this.dom_node = construct.create('div', {
|
this.dom_node = construct.create('div', {
|
||||||
id: this.id,
|
id: this.id,
|
||||||
'class': 'app-container'
|
'class': this['class']
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.container_node) {
|
if (this.container_node) {
|
||||||
|
Loading…
Reference in New Issue
Block a user