mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 03:23:09 +03:00
grid: can unsync system OTAs from notifications
When shown the Base Blocked notification, the user can opt to disable updates so as to continue using out-of-date apps.
This commit is contained in:
parent
8239781550
commit
d3474705a9
@ -51,14 +51,23 @@ export const BaseBlockedNotification = () => {
|
||||
const [b, u] = partition(Object.entries(s.pikes), ([, pike]) => pikeIsBlocked(newKelvin, pike));
|
||||
return [b.map(([d]) => d), u.map(([d]) => d)] as const;
|
||||
});
|
||||
const { toggleInstall } = useKilnState();
|
||||
|
||||
const blockedCharges = Object.values(pick(charges, blocked));
|
||||
const count = blockedCharges.length;
|
||||
|
||||
const handlePauseOTAs = useCallback(() => {}, []);
|
||||
const handlePauseOTAs = useCallback(async () => {
|
||||
const otaSponsor = basePike?.sync?.ship;
|
||||
if (!otaSponsor) {
|
||||
return;
|
||||
}
|
||||
|
||||
await toggleInstall('base', otaSponsor);
|
||||
push('/leap/upgrading');
|
||||
}, []);
|
||||
|
||||
const handleArchiveApps = useCallback(async () => {
|
||||
api.poke(kilnBump());
|
||||
await api.poke(kilnBump());
|
||||
push('/leap/upgrading');
|
||||
}, []);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user