diff options
| -rw-r--r-- | src/modules/popdowns/networks.tsx | 4 | ||||
| -rw-r--r-- | src/modules/popdowns/updates.tsx | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/modules/popdowns/networks.tsx b/src/modules/popdowns/networks.tsx index 18a38d3..726f1c9 100644 --- a/src/modules/popdowns/networks.tsx +++ b/src/modules/popdowns/networks.tsx @@ -84,11 +84,11 @@ export default () => { countLabel={bind(label)} headerButtons={[ { - label: bind(network.wifi, "enabled").as(p => (p ? "Disable" : "Enable")), + label: bind(network.wifi, "enabled").as(e => (e ? "Disable" : "Enable")), onClicked: () => (network.wifi.enabled = !network.wifi.enabled), }, { - label: "Scan", + label: bind(network.wifi, "scanning").as(s => (s ? "Scanning" : "Scan")), onClicked: () => network.wifi.scan(), enabled: bind(network.wifi, "scanning"), }, diff --git a/src/modules/popdowns/updates.tsx b/src/modules/popdowns/updates.tsx index 536ec08..9e98f66 100644 --- a/src/modules/popdowns/updates.tsx +++ b/src/modules/popdowns/updates.tsx @@ -80,7 +80,11 @@ export default () => ( // Ignore errors .catch(() => {}), }, - { label: "Reload", onClicked: () => Updates.get_default().getUpdates() }, + { + label: bind(Updates.get_default(), "loading").as(l => (l ? "Loading" : "Reload")), + onClicked: () => Updates.get_default().getUpdates(), + enabled: bind(Updates.get_default(), "loading"), + }, ]} emptyIcon="deployed_code_history" emptyLabel="All packages up to date!" |