Skip to content

Commit d58eb15

Browse files
committed
Improve "configured" check for local debugging
1 parent f42a3dc commit d58eb15

File tree

3 files changed

+135
-132
lines changed

3 files changed

+135
-132
lines changed

assets/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ <h1 class="display-4 pt-3" v-if="title">{{title}}</h1>
136136

137137
<script type="text/x-template" id="main-template">
138138
<div class="container">
139-
<site v-bind:state="state" v-if="<<.Configured>>"></site>
139+
<site v-bind:state="state" v-if="configured('<<.Configured>>')"></site>
140140
<div v-else>
141141
<div class="row py-5">
142142
<div class="col12">

assets/js/app.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,14 @@ const main = Vue.component('main', {
329329
data: function() {
330330
return {
331331
state: store.state // global state
332-
};
332+
}
333333
},
334-
computed: {
335-
configured: function() {
336-
return this.state.loadpoints.length >= 1
334+
methods: {
335+
configured: function(val) {
336+
if (val == '<<.Configured>>' && val != '0') {
337+
return 0+val;
338+
}
339+
return false;
337340
}
338341
}
339342
});

0 commit comments

Comments
 (0)