popdowns: some minor header button changes
This commit is contained in:
parent
d240272918
commit
b9afce1bab
2 changed files with 7 additions and 3 deletions
|
|
@ -84,11 +84,11 @@ export default () => {
|
||||||
countLabel={bind(label)}
|
countLabel={bind(label)}
|
||||||
headerButtons={[
|
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),
|
onClicked: () => (network.wifi.enabled = !network.wifi.enabled),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Scan",
|
label: bind(network.wifi, "scanning").as(s => (s ? "Scanning" : "Scan")),
|
||||||
onClicked: () => network.wifi.scan(),
|
onClicked: () => network.wifi.scan(),
|
||||||
enabled: bind(network.wifi, "scanning"),
|
enabled: bind(network.wifi, "scanning"),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,11 @@ export default () => (
|
||||||
// Ignore errors
|
// Ignore errors
|
||||||
.catch(() => {}),
|
.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"
|
emptyIcon="deployed_code_history"
|
||||||
emptyLabel="All packages up to date!"
|
emptyLabel="All packages up to date!"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue