webui: display expired session notification in a more visible area

The notification is a primary information of the page. It should be more highlighted.

https://fedorahosted.org/freeipa/ticket/4470

Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
Petr Vobornik 2014-07-24 17:33:15 +02:00
parent fa8f180ff5
commit a94fc09b57

View File

@ -248,6 +248,10 @@ define(['dojo/_base/declare',
show_login_view: function() {
this.set_login_aside_text();
if (auth.current.expired) {
var val_summary = this.get_widget('validation');
val_summary.add_info('expired', this.expired_msg);
}
if (this.buttons_node) {
construct.place(this.sync_btn_node, this.buttons_node);
construct.place(this.login_btn_node, this.buttons_node);
@ -284,9 +288,6 @@ define(['dojo/_base/declare',
set_login_aside_text: function() {
var aside = "";
if (auth.current.expired) {
aside += "<p>"+this.expired_msg;+"<p/>";
}
if (this.password_enabled()) {
aside += "<p>"+this.form_auth_msg;+"<p/>";
}