mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-01 19:46:36 +03:00
grid: bump desk from ui
This commit is contained in:
parent
26c36ac588
commit
56893092e1
@ -1,6 +1,6 @@
|
||||
import { pick } from 'lodash-es';
|
||||
import React, { useCallback } from 'react';
|
||||
import { kilnSuspend } from '@urbit/api/hood';
|
||||
import { kilnBump } from '@urbit/api/hood';
|
||||
import { AppList } from '../../components/AppList';
|
||||
import { Button } from '../../components/Button';
|
||||
import { Dialog, DialogClose, DialogContent, DialogTrigger } from '../../components/Dialog';
|
||||
@ -49,9 +49,8 @@ export const BaseBlockedNotification = ({ notification }: BaseBlockedNotificatio
|
||||
const handlePauseOTAs = useCallback(() => {}, []);
|
||||
|
||||
const handleArchiveApps = useCallback(async () => {
|
||||
await Promise.all(desks.map((d) => api.poke(kilnSuspend(d))));
|
||||
// TODO: retrigger OTA?
|
||||
}, [desks]);
|
||||
api.poke(kilnBump(true));
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<section
|
||||
|
Loading…
Reference in New Issue
Block a user