grid: disable button during install
Fixes urbit/landscape#1178
@@ -68,6 +68,8 @@ export const AppInfo: FC<AppInfoProps> = ({ docket, vat, className }) => {
}, 1250);
}, []);
+ const installing = installStatus === 'installing';
+
if (!docket) {
// TODO: maybe replace spinner with skeletons
return (
@@ -94,8 +96,8 @@ export const AppInfo: FC<AppInfoProps> = ({ docket, vat, className }) => {
)}
{installStatus !== 'installed' && (
<Dialog>
- <DialogTrigger as={PillButton} variant="alt-primary">
- {installStatus === 'installing' ? (
+ <DialogTrigger as={PillButton} disabled={installing} variant="alt-primary">
+ {installing ? (
<>
<Spinner />
<span className="sr-only">Installing...</span>
