aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-03-20 20:33:17 +0100
committerMateja <mail@matejamaric.com>2021-03-20 20:33:17 +0100
commit5a30e103893c05d138a80ed18d65a948aea973e6 (patch)
tree3dd5c42df7d016ebdd328a8e59ea98e4c24dd311 /resources
parent2f5e8adb8d310690db54aca55382f4733e337a85 (diff)
downloadyota-laravel-5a30e103893c05d138a80ed18d65a948aea973e6.tar.gz
yota-laravel-5a30e103893c05d138a80ed18d65a948aea973e6.zip
Fix operatorPhone and add click methods.
Diffstat (limited to 'resources')
-rw-r--r--resources/js/components/reservation.vue19
1 files changed, 15 insertions, 4 deletions
diff --git a/resources/js/components/reservation.vue b/resources/js/components/reservation.vue
index aa8b209..d733c9d 100644
--- a/resources/js/components/reservation.vue
+++ b/resources/js/components/reservation.vue
@@ -11,11 +11,11 @@
<td><input type="text" v-model="reservation.modes"></td>
<td><input type="text" v-model="reservation.operatorName"></td>
<td><input type="text" v-model="reservation.operatorEmail"></td>
- <td><input type="text" v-model="reservation.operatorCall"></td>
+ <td><input type="text" v-model="reservation.operatorPhone"></td>
<td>
- <button class="btn btn-primary mr-2">Update</button>
- <button class="btn btn-warning mr-2">Restore</button>
- <button class="btn btn-danger">Delete</button>
+ <button class="btn btn-primary mr-2" @click="updateRow">Update</button>
+ <button class="btn btn-warning mr-2" @click="restoreRow">Restore</button>
+ <button class="btn btn-danger" @click="deleteRow">Delete</button>
</td>
</tr>
</template>
@@ -27,6 +27,17 @@ export default {
return {
reservation: this.$store.getters.getData[this.reservationIndex]
}
+ },
+ methods: {
+ updateRow() {
+
+ },
+ restoreRow() {
+
+ },
+ deleteRow() {
+
+ }
}
}
</script>