Skip to content

Commit 33ff70d

Browse files
committed
Don't show anything when connection with the backend is okay
1 parent 1c4c5e7 commit 33ff70d

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

src/components/Blockly.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@
5050
<v-progress-circular :size="30" :width="2" indeterminate></v-progress-circular>
5151
</v-btn>
5252
</template>
53+
<!--
5354
<v-btn @click="dialog = true" icon v-if="status == 200">
5455
<v-icon>check_circle</v-icon>
5556
</v-btn>
56-
<v-btn @click="dialog = true" icon v-else>
57+
-->
58+
<v-btn @click="dialog = true" icon v-if="status != 200">
5759
<v-icon>error</v-icon>
5860
</v-btn>
5961
</v-toolbar-items>

src/components/Control.vue

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
<v-toolbar-title>CoderBot</v-toolbar-title>
77
<v-spacer></v-spacer>
88
<v-toolbar-items>
9+
<!--
910
<template v-if="status == 200">
1011
<v-btn @click="dialog = true" icon>
1112
<v-icon>check_circle</v-icon>
1213
</v-btn>
1314
</template>
14-
<template v-else>
15+
-->
16+
<template v-if="status != 200">
1517
<v-btn flat>
1618
<v-progress-circular :size="30" :width="2" indeterminate></v-progress-circular>
1719
</v-btn>
@@ -61,27 +63,22 @@
6163
<v-flex xs12 sm12>
6264
<br><br><br>
6365
<v-btn-toggle>
64-
6566
<v-btn large color="blue-grey darken-4" class="white--text" v-on:click="say()">
6667
Pronuncia
6768
<v-icon dark>chat_bubble_outline</v-icon>
6869
</v-btn>
6970
</v-btn-toggle>
7071
</v-flex>
7172
<v-flex xs12 sm12>
72-
7373
<v-btn-toggle>
74-
7574
<v-btn large color="blue-grey darken-4" class="white--text" v-on:click="takePhoto()">
7675
Scatta foto
7776
<v-icon dark>camera_alt</v-icon>
7877
</v-btn>
7978
</v-btn-toggle>
8079
</v-flex>
81-
8280
<v-flex xs12 sm12>
8381
<v-btn-toggle>
84-
8582
<v-btn large color="blue-grey darken-4" class="white--text" v-on:click="recordVideo()">
8683
Registra video
8784
<v-icon dark>videocam</v-icon>
@@ -90,13 +87,12 @@
9087
</v-flex>
9188
<v-flex xs12 sm12>
9289
<v-btn-toggle>
93-
9490
<v-btn large color="blue-grey darken-4" class="white--text" v-on:click="showGallery()">
9591
Galleria
9692
<v-icon dark>photo_library</v-icon>
9793
</v-btn>
9894
</v-btn-toggle>
99-
</v-flex>
95+
</v-flex>
10096
</v-layout>
10197
</v-flex>
10298
</v-layout>
@@ -124,10 +120,10 @@ export default {
124120
components: { sidebar },
125121
name: 'HelloWorld',
126122
methods: {
127-
say(){},
128-
takePhoto(){},
129-
recordVideo(){},
130-
showGallery(){},
123+
say() {},
124+
takePhoto() {},
125+
recordVideo() {},
126+
showGallery() {},
131127
pollStatus() {
132128
let axios = this.$axios
133129
let CB = this.$data.CB

0 commit comments

Comments
 (0)