fix(ags): fix issues with hover on network item
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
85348d1a6c
commit
d223d18842
1 changed files with 17 additions and 13 deletions
|
@ -29,20 +29,24 @@ export default () => {
|
||||||
return (
|
return (
|
||||||
<box>
|
<box>
|
||||||
{/* Make sure the AP is there before binding to it */}
|
{/* Make sure the AP is there before binding to it */}
|
||||||
{bind(Wifi, 'accessPoints').as((aps) => aps.length !== 0 && (
|
{bind(Wifi, 'accessPoints').as((aps) => {
|
||||||
<>
|
if (aps.length === 0) { return; }
|
||||||
<icon icon={bind(Wifi, 'iconName')} />
|
|
||||||
|
|
||||||
<revealer
|
return (
|
||||||
revealChild={bind(Hovered)}
|
<>
|
||||||
transitionType={Gtk.RevealerTransitionType.SLIDE_LEFT}
|
<icon icon={bind(Wifi, 'iconName')} />
|
||||||
>
|
|
||||||
{bind(Wifi, 'activeAccessPoint').as((ap) => ap && (
|
<revealer
|
||||||
<label label={bind(ap, 'ssid')} />
|
revealChild={bind(Hovered)}
|
||||||
))}
|
transitionType={Gtk.RevealerTransitionType.SLIDE_LEFT}
|
||||||
</revealer>
|
>
|
||||||
</>
|
{bind(Wifi, 'activeAccessPoint').as((ap) => ap && (
|
||||||
))}
|
<label label={bind(ap, 'ssid')} />
|
||||||
|
))}
|
||||||
|
</revealer>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
})}
|
||||||
</box>
|
</box>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue