diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-31 21:05:24 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-31 21:05:24 +1100 |
| commit | b9afce1babb7d3da3d33e9bab2c763c289fbf352 (patch) | |
| tree | 947c25ba551bd4382d667a6ec6c9c93d3aec51fb /src/modules/popdowns/updates.tsx | |
| parent | refactor: move weather icons to utils (diff) | |
| download | caelestia-shell-b9afce1babb7d3da3d33e9bab2c763c289fbf352.tar.gz caelestia-shell-b9afce1babb7d3da3d33e9bab2c763c289fbf352.tar.bz2 caelestia-shell-b9afce1babb7d3da3d33e9bab2c763c289fbf352.zip | |
popdowns: some minor header button changes
Diffstat (limited to 'src/modules/popdowns/updates.tsx')
| -rw-r--r-- | src/modules/popdowns/updates.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
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!" |