From a94fc09b5747ff5ffc632d95b330470ed78ee0f5 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 24 Jul 2014 17:33:15 +0200 Subject: 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 --- install/ui/src/freeipa/widgets/LoginScreen.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'install/ui/src/freeipa/widgets') diff --git a/install/ui/src/freeipa/widgets/LoginScreen.js b/install/ui/src/freeipa/widgets/LoginScreen.js index e7e1b029e..87938f9c0 100644 --- a/install/ui/src/freeipa/widgets/LoginScreen.js +++ b/install/ui/src/freeipa/widgets/LoginScreen.js @@ -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 += "

"+this.expired_msg;+"

"; - } if (this.password_enabled()) { aside += "

"+this.form_auth_msg;+"

"; } -- cgit