From c574b4223591c4a6cd3ef5e146ce99cd8f7c9190 Mon Sep 17 00:00:00 2001 From: Sabir Hassan Date: Wed, 27 Jul 2022 01:42:46 +0500 Subject: [PATCH] fix(web): disable launch icon button when file content is not saved --- web/src/containers/Studio/editor.tsx | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/web/src/containers/Studio/editor.tsx b/web/src/containers/Studio/editor.tsx index 0ecb218..81c6df0 100644 --- a/web/src/containers/Studio/editor.tsx +++ b/web/src/containers/Studio/editor.tsx @@ -357,6 +357,8 @@ const SASjsEditor = ({ > void @@ -464,6 +468,8 @@ type RunMenuProps = { const RunMenu = ({ selectedFilePath, + fileContent, + prevFileContent, selectedRunTime, runTimes, handleChangeRunTime, @@ -496,10 +502,21 @@ const RunMenu = ({ {selectedFilePath ? ( - - - - + + + + + + ) : (