Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

All cases

Manav Rathie822d327e46a
diff --git a/web/packages/base/components/MiniDialog.tsx b/web/packages/base/components/MiniDialog.tsx
index 6179773b82..510ab6082f 100644
--- a/web/packages/base/components/MiniDialog.tsx
+++ b/web/packages/base/components/MiniDialog.tsx
@@ -80,6 +80,16 @@ export interface MiniDialogAttributes {
* If this function is not provided, or if the function completes /
* fullfills, then then the dialog is automatically closed. Otherwise
* (that is, if the provided function throws), the dialog remains open.
+ *
+ * That's quite a mouthful, here's a flowchart:
+ *
+ * - Not provided: Close
+ * - Provided sync:
+ * - Success: Close
+ * - Failure: Remain open
+ * - Provided async:
+ * - Success: Close
+ * - Failure: Remain open
*/
action?: () => void | Promise<void>;
};