File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -218,8 +218,8 @@ export default {
218218 Prism : () =>
219219 import (' vue-prism-component' )
220220 },
221- data () {
222- return {
221+ data : () => ( {
222+
223223 settings: null ,
224224 snackText: null ,
225225 snackbar: false ,
@@ -244,8 +244,8 @@ export default {
244244 newProgramName: ' ' ,
245245 unvalidName: false ,
246246 del: false ,
247- };
248- },
247+
248+ }) ,
249249 computed: {
250250 statusText : function () {
251251 if (this .status ) {
@@ -260,11 +260,13 @@ export default {
260260 let axios = this .$axios
261261 this .status = null
262262 this .pollStatus ();
263+
264+ // Start the polling
263265 setInterval (function () {
264266 this .pollStatus ();
265267 }.bind (this ), 1000 )
266268
267-
269+ // Get the legacy configuration and initialize Blockly
268270 axios .get (this .CBv1 + ' /config' )
269271 .then (function (response ) {
270272 var settings = response .data
You can’t perform that action at this time.
0 commit comments