File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -150,23 +150,27 @@ export function BodyWidget(props: BodyWidgetProps) {
150150 console . log ( model ) ;
151151 request . post ( "http://localhost:5000" ) . json ( { model : model } ) ;
152152 } } >
153- < MdFileUpload /> Upload circuit
153+ < MdFileUpload /> Upload circuit to ZRNA board
154154 </ DemoButton >
155155 < DemoButton
156156 onClick = { ( ) => {
157157 const model = props . app . getDiagramEngine ( ) . getModel ( ) . serialize ( ) ;
158158 console . log ( model ) ;
159159 } } >
160- < MdHelp /> Print circuit
160+ < MdHelp /> Print circuit to browser console
161161 </ DemoButton >
162162 < DemoButton
163163 onClick = { ( ) => {
164- console . log ( "CLEARING CIRCUIT" ) ;
165164 props . app . resetActiveModel ( ) ;
166- request . delete ( "http://localhost:5000" ) ;
167165 forceUpdate ( ) ;
168166 } } >
169- < MdClear /> Clear circuit
167+ < MdClear /> Clear local circuit
168+ </ DemoButton >
169+ < DemoButton
170+ onClick = { ( ) => {
171+ request . delete ( "http://localhost:5000" ) ;
172+ } } >
173+ < MdClear /> Clear circuit on ZRNA board
170174 </ DemoButton >
171175 < PlayButton onClick = { ( ) => {
172176 setLiveMode ( ! liveMode ) ;
@@ -178,7 +182,7 @@ export function BodyWidget(props: BodyWidgetProps) {
178182 request . post ( "http://localhost:5000/pause" ) ;
179183 }
180184 } } isLive = { liveMode } >
181- < MdPlayArrow />
185+ < MdPlayArrow /> { ! liveMode ? "Run circuit" : "Pause circuit" }
182186 </ PlayButton >
183187 </ div >
184188 } >
You can’t perform that action at this time.
0 commit comments