@@ -70,17 +70,19 @@ class GraphServer extends GraphLoadSave {
7070 // TODO
7171 const toastId = toast . info ( 'LOADING.......' , {
7272 position : 'bottom-left' ,
73- autoClose : false , // Disable auto-close
73+ autoClose : false ,
7474 } ) ;
75+ this . dispatcher ( { type : T . SET_LOGS , payload : false } ) ;
7576 Axios . post ( `http://127.0.0.1:5000/build/${ this . superState . uploadedDirName } ?fetch=${ this . superState . graphs [ this . superState . curGraphIndex ] . fileName . split ( '.' ) [ 0 ] } &unlock=${ this . superState . unlockCheck } &docker=${ this . superState . dockerCheck } &maxtime=${ this . superState . maxTime } ¶ms=${ this . superState . params } &octave=${ this . superState . octave } ` )
7677 . then ( ( res ) => { // eslint-disable-next-line
77- toast . success ( res . data [ 'message' ] )
78+ toast . success ( res . data [ 'message' ] ) ;
7879 this . dispatcher ( {
7980 type : T . SET_FUNCTIONS ,
8081 payload : {
8182 built : false , ran : false , debugged : true , cleared : false , stopped : false , destroyed : true ,
8283 } ,
8384 } ) ;
85+ this . dispatcher ( { type : T . SET_LOGS_MESSAGE , payload : this . superState . logsmessage + res . data . output } ) ;
8486 toast . dismiss ( toastId ) ;
8587 } ) . catch ( ( err ) => { // eslint-disable-next-line
8688 toast . error ( err . message ) ;
@@ -93,8 +95,9 @@ class GraphServer extends GraphLoadSave {
9395 // TODO
9496 const toastId = toast . info ( 'LOADING.......' , {
9597 position : 'bottom-left' ,
96- autoClose : false , // Disable auto-close
98+ autoClose : false ,
9799 } ) ;
100+ this . dispatcher ( { type : T . SET_LOGS , payload : false } ) ;
98101 Axios . post ( `http://127.0.0.1:5000/debug/${ this . superState . graphs [ this . superState . curGraphIndex ] . fileName . split ( '.' ) [ 0 ] } ` )
99102 . then ( ( res ) => { // eslint-disable-next-line
100103 toast . success ( res . data [ 'message' ] )
@@ -116,8 +119,9 @@ class GraphServer extends GraphLoadSave {
116119 // TODO
117120 const toastId = toast . info ( 'LOADING.......' , {
118121 position : 'bottom-left' ,
119- autoClose : false , // Disable auto-close
122+ autoClose : false ,
120123 } ) ;
124+ this . dispatcher ( { type : T . SET_LOGS , payload : false } ) ;
121125 Axios . post ( `http://127.0.0.1:5000/run/${ this . superState . graphs [ this . superState . curGraphIndex ] . fileName . split ( '.' ) [ 0 ] } ` )
122126 . then ( ( res ) => { // eslint-disable-next-line
123127 toast . success ( res . data [ 'message' ] )
@@ -139,8 +143,9 @@ class GraphServer extends GraphLoadSave {
139143 // TODO
140144 const toastId = toast . info ( 'LOADING.......' , {
141145 position : 'bottom-left' ,
142- autoClose : false , // Disable auto-close
146+ autoClose : false ,
143147 } ) ;
148+ this . dispatcher ( { type : T . SET_LOGS , payload : false } ) ;
144149 Axios . post ( `http://127.0.0.1:5000/clear/${ this . superState . graphs [ this . superState . curGraphIndex ] . fileName . split ( '.' ) [ 0 ] }
145150 ?unlock=${ this . superState . unlockCheck } &maxtime=${ this . superState . maxTime } ¶ms=${ this . superState . params } ` )
146151 . then ( ( res ) => { // eslint-disable-next-line
@@ -163,8 +168,9 @@ class GraphServer extends GraphLoadSave {
163168 // TODO
164169 const toastId = toast . info ( 'LOADING.......' , {
165170 position : 'bottom-left' ,
166- autoClose : false , // Disable auto-close
171+ autoClose : false ,
167172 } ) ;
173+ this . dispatcher ( { type : T . SET_LOGS , payload : false } ) ;
168174 Axios . post ( `http://127.0.0.1:5000/stop/${ this . superState . graphs [ this . superState . curGraphIndex ] . fileName . split ( '.' ) [ 0 ] } ` )
169175 . then ( ( res ) => { // eslint-disable-next-line
170176 toast . success ( res . data [ 'message' ] )
@@ -186,8 +192,9 @@ class GraphServer extends GraphLoadSave {
186192 // TODO
187193 const toastId = toast . info ( 'LOADING.......' , {
188194 position : 'bottom-left' ,
189- autoClose : false , // Disable auto-close
195+ autoClose : false ,
190196 } ) ;
197+ this . dispatcher ( { type : T . SET_LOGS , payload : false } ) ;
191198 Axios . delete ( `http://127.0.0.1:5000/destroy/${ this . superState . graphs [ this . superState . curGraphIndex ] . fileName . split ( '.' ) [ 0 ] } ` )
192199 . then ( ( res ) => { // eslint-disable-next-line
193200 toast . success ( res . data [ 'message' ] )
0 commit comments