Tyop
This commit is contained in:
parent
4b3eca677b
commit
3bc50dc398
@ -259,8 +259,7 @@ class Indicator extends PanelMenu.Button {
|
|||||||
_child = new St.Label({ style_class: 'monito-label', text: text.toString(), });
|
_child = new St.Label({ style_class: 'monito-label', text: text.toString(), });
|
||||||
else if ( col.special == 'actions' && this.serverLogic.canRecheck )
|
else if ( col.special == 'actions' && this.serverLogic.canRecheck )
|
||||||
{
|
{
|
||||||
_child = new St.BoxLayout ( { x_expand: true,
|
_child = new St.BoxLayout ( { x_expand: false,
|
||||||
x_align: Clutter.ActorAlign.FILL,
|
|
||||||
vertical: false } );
|
vertical: false } );
|
||||||
let _button = new St.Button ( {
|
let _button = new St.Button ( {
|
||||||
style_class: 'button small-button',
|
style_class: 'button small-button',
|
||||||
@ -330,6 +329,7 @@ class Indicator extends PanelMenu.Button {
|
|||||||
this.boxes['ok'].set_text ( '…' );
|
this.boxes['ok'].set_text ( '…' );
|
||||||
this.boxes['warning'].set_text ( '…' );
|
this.boxes['warning'].set_text ( '…' );
|
||||||
this.boxes['critical'].set_text ( '…' );
|
this.boxes['critical'].set_text ( '…' );
|
||||||
|
this.boxes['unknown'].set_text ( '…' );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -402,6 +402,7 @@ class Indicator extends PanelMenu.Button {
|
|||||||
this.boxes['ok'].get_parent().show ( );
|
this.boxes['ok'].get_parent().show ( );
|
||||||
this.boxes['warning'].get_parent().hide ( );
|
this.boxes['warning'].get_parent().hide ( );
|
||||||
this.boxes['critical'].get_parent().hide ( );
|
this.boxes['critical'].get_parent().hide ( );
|
||||||
|
this.boxes['unknown'].get_parent().hide ( );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -415,7 +416,7 @@ class Indicator extends PanelMenu.Button {
|
|||||||
if ( _status.UNKNOWN != 0 )
|
if ( _status.UNKNOWN != 0 )
|
||||||
{
|
{
|
||||||
this.boxes['unknown'].set_text ( String(_status.UNKNOWN) );
|
this.boxes['unknown'].set_text ( String(_status.UNKNOWN) );
|
||||||
this.boxes['unkown'].get_parent().show ( );
|
this.boxes['unknown'].get_parent().show ( );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch ( e )
|
catch ( e )
|
||||||
|
Loading…
Reference in New Issue
Block a user