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 {
218
218
Prism : () =>
219
219
import (' vue-prism-component' )
220
220
},
221
- data () {
222
- return {
221
+ data : () => ( {
222
+
223
223
settings: null ,
224
224
snackText: null ,
225
225
snackbar: false ,
@@ -244,8 +244,8 @@ export default {
244
244
newProgramName: ' ' ,
245
245
unvalidName: false ,
246
246
del: false ,
247
- };
248
- },
247
+
248
+ }) ,
249
249
computed: {
250
250
statusText : function () {
251
251
if (this .status ) {
@@ -260,11 +260,13 @@ export default {
260
260
let axios = this .$axios
261
261
this .status = null
262
262
this .pollStatus ();
263
+
264
+ // Start the polling
263
265
setInterval (function () {
264
266
this .pollStatus ();
265
267
}.bind (this ), 1000 )
266
268
267
-
269
+ // Get the legacy configuration and initialize Blockly
268
270
axios .get (this .CBv1 + ' /config' )
269
271
.then (function (response ) {
270
272
var settings = response .data
You can’t perform that action at this time.
0 commit comments