Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

extra disabled states

Brendan Allan46153167d32c
diff --git a/apps/desktop-solid/src/routes/editor/Editor.tsx b/apps/desktop-solid/src/routes/editor/Editor.tsx
index 86c127273..7cd41f9f9 100644
--- a/apps/desktop-solid/src/routes/editor/Editor.tsx
+++ b/apps/desktop-solid/src/routes/editor/Editor.tsx
@@ -1262,6 +1262,7 @@ function Dialogs() {
title="Rename Preset"
confirm={
<Dialog.ConfirmButton
+ disabled={renamePreset.isPending}
onClick={() => renamePreset.mutate()}
>
Rename
@@ -1299,6 +1300,7 @@ function Dialogs() {
<Dialog.ConfirmButton
variant="destructive"
onClick={() => deletePreset.mutate()}
+ disabled={deletePreset.isPending}
>
Delete
</Dialog.ConfirmButton>