fix(ags): fix issues with hover on network item
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-11-20 20:50:07 -05:00
parent 85348d1a6c
commit d223d18842

View file

@ -29,20 +29,24 @@ export default () => {
return (
<box>
{/* Make sure the AP is there before binding to it */}
{bind(Wifi, 'accessPoints').as((aps) => aps.length !== 0 && (
<>
<icon icon={bind(Wifi, 'iconName')} />
{bind(Wifi, 'accessPoints').as((aps) => {
if (aps.length === 0) { return; }
<revealer
revealChild={bind(Hovered)}
transitionType={Gtk.RevealerTransitionType.SLIDE_LEFT}
>
{bind(Wifi, 'activeAccessPoint').as((ap) => ap && (
<label label={bind(ap, 'ssid')} />
))}
</revealer>
</>
))}
return (
<>
<icon icon={bind(Wifi, 'iconName')} />
<revealer
revealChild={bind(Hovered)}
transitionType={Gtk.RevealerTransitionType.SLIDE_LEFT}
>
{bind(Wifi, 'activeAccessPoint').as((ap) => ap && (
<label label={bind(ap, 'ssid')} />
))}
</revealer>
</>
);
})}
</box>
);
}