summaryrefslogtreecommitdiff
path: root/www/src/buttonList.vue
diff options
context:
space:
mode:
authorngharo <nick@ngha.ro>2018-01-03 19:47:41 -0600
committerngharo <nick@ngha.ro>2018-01-03 19:47:41 -0600
commit1f4160511f4853de614355f45b94152fbd19e29e (patch)
tree77e144270ae0ecf8cebe8857246bb75ae6092013 /www/src/buttonList.vue
parentf920c7da0618fd9f4181c2c78ef054e324185355 (diff)
downloadimOk-www-master.tar.xz
imOk-www-master.zip
-~-~ Under Construction ~-~-~~~~~HEADmaster
Diffstat (limited to 'www/src/buttonList.vue')
-rw-r--r--www/src/buttonList.vue19
1 files changed, 19 insertions, 0 deletions
diff --git a/www/src/buttonList.vue b/www/src/buttonList.vue
new file mode 100644
index 0000000..80cfea9
--- /dev/null
+++ b/www/src/buttonList.vue
@@ -0,0 +1,19 @@
+<template>
+ <tr v-if="!ready">
+ <td colspan="3"><i class="fa fa-spinner fa-spin"></i>
+ </tr>
+
+ <tr v-for="(button, index) in buttons" v-show="ready">
+ <td>{{ button.id }} <button v-on:click="remove(index)">delete</button></td>
+ <td>
+ <select v-model="button.status" v-on:change="update(index)">
+ <option value="0">Inventory</option>
+ <option value="1">Active</option>
+ <option>2</option>
+ <option>3</option>
+ <option>4</option>
+ </select>
+ </td>
+ <td>{{ button.last_pressed }}</td>
+ </tr>
+</template>