diff options
Diffstat (limited to 'www/src/buttonList.vue')
-rw-r--r-- | www/src/buttonList.vue | 19 |
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> |