This commit is contained in:
Benjamin Drieu 2021-12-02 00:12:33 +01:00 committed by Benjamin Drieu
parent 68e394508c
commit 4b5881ffae
1 changed files with 4 additions and 3 deletions

View File

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