From eb94326bb64552dbd7df62ae201ccca37f368467 Mon Sep 17 00:00:00 2001
From: Kristóf Marussy <kristof@marussy.com>
Date: Mon, 5 Sep 2022 01:29:11 +0200
Subject: feat(frontend): show connection status

---
 subprojects/frontend/src/editor/GenerateButton.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'subprojects/frontend/src/editor/GenerateButton.tsx')

diff --git a/subprojects/frontend/src/editor/GenerateButton.tsx b/subprojects/frontend/src/editor/GenerateButton.tsx
index 5254f6cb..2ffb1a94 100644
--- a/subprojects/frontend/src/editor/GenerateButton.tsx
+++ b/subprojects/frontend/src/editor/GenerateButton.tsx
@@ -46,6 +46,7 @@ export default observer(function GenerateButton({
 
   return (
     <Button
+      disabled={!editorStore.opened}
       color={warningCount > 0 ? 'warning' : 'primary'}
       className="rounded"
       startIcon={<PlayArrowIcon />}
-- 
cgit v1.2.3-70-g09d2

