mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
parent
a6927994a0
commit
6f8dc9dba4
@ -248,6 +248,10 @@ define(['dojo/_base/declare',
|
|||||||
|
|
||||||
show_login_view: function() {
|
show_login_view: function() {
|
||||||
this.set_login_aside_text();
|
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) {
|
if (this.buttons_node) {
|
||||||
construct.place(this.sync_btn_node, this.buttons_node);
|
construct.place(this.sync_btn_node, this.buttons_node);
|
||||||
construct.place(this.login_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() {
|
set_login_aside_text: function() {
|
||||||
var aside = "";
|
var aside = "";
|
||||||
if (auth.current.expired) {
|
|
||||||
aside += "<p>"+this.expired_msg;+"<p/>";
|
|
||||||
}
|
|
||||||
if (this.password_enabled()) {
|
if (this.password_enabled()) {
|
||||||
aside += "<p>"+this.form_auth_msg;+"<p/>";
|
aside += "<p>"+this.form_auth_msg;+"<p/>";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user