File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1193,6 +1193,12 @@ class Activity {
11931193 if ( ! this . turtles . isShrunk ( ) ) {
11941194 this . blocks . hideBlocks ( ) ;
11951195 this . showBlocksAfterRun = true ;
1196+ const saveButton = docById ( 'saveButton' ) ;
1197+ const saveButtonAdvanced = docById ( 'saveButtonAdvanced' ) ;
1198+ saveButton . disabled = true ;
1199+ saveButtonAdvanced . disabled = true ;
1200+ saveButton . className = "grey-text inactiveLink" ;
1201+ saveButtonAdvanced . className = "grey-text inactiveLink" ;
11961202 }
11971203
11981204 this . logo . runLogoCommands ( null , env ) ;
@@ -3625,6 +3631,7 @@ class Activity {
36253631 hideDOMLabel ( ) ;
36263632
36273633 if ( this . blocks . visible ) {
3634+ console . log ( "krishna" ) ;
36283635 this . blocks . hideBlocks ( ) ;
36293636 this . showBlocksAfterRun = false ;
36303637 this . palettes . hide ( ) ;
Original file line number Diff line number Diff line change @@ -1789,6 +1789,12 @@ class Logo {
17891789 } else {
17901790 logo . activity . blocks . showBlocks ( ) ;
17911791 logo . activity . showBlocksAfterRun = false ;
1792+ const saveButton = docById ( 'saveButton' ) ;
1793+ const saveButtonAdvanced = docById ( 'saveButtonAdvanced' ) ;
1794+ saveButton . disabled = false ;
1795+ saveButtonAdvanced . disabled = false ;
1796+ saveButton . className = saveButton . className . replace ( 'grey-text inactiveLink' , '' ) . trim ( ) ;
1797+ saveButtonAdvanced . className = saveButtonAdvanced . className . replace ( 'grey-text inactiveLink' , '' ) . trim ( ) ;
17921798 }
17931799 }
17941800 document . getElementById ( "stop" ) . style . color = "white" ;
You can’t perform that action at this time.
0 commit comments