Skip to content
Snippets Groups Projects
Verified Commit 19fe75f8 authored by Kirill Stytsenko's avatar Kirill Stytsenko
Browse files

Display potential error

parent 16d4a0cc
Branches
Tags
3 merge requests!23Sprint results,!18Merge Conflicts,!17UI sprint 2
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</v-stepper-step> </v-stepper-step>
<v-stepper-content step="3"> <v-stepper-content step="3">
<div v-for="(c, idx) in columns" :key="idx"> <div v-for="(c, idx) in columns" :key="idx">
<v-row dense class="column pa-2 ml-1 mr-1"> <v-row dense class="column pa-2 ml-1 mr-1 mb-2">
<v-col cols="4"> <v-col cols="4">
<v-text-field v-model="c.name" disabled required label="Name" /> <v-text-field v-model="c.name" disabled required label="Name" />
</v-col> </v-col>
...@@ -148,13 +148,15 @@ export default { ...@@ -148,13 +148,15 @@ export default {
let res let res
try { try {
res = await this.$axios.post(url, data) res = await this.$axios.post(url, data)
// TODO check success this.newTableId = res.data.id
this.newTableId = res.data.tableId // FIXME
} catch (err) { } catch (err) {
console.log(err) console.log(err)
} }
if (res && res.data && res.data.id) {
this.step = 4 this.step = 4
} else {
this.$toast.error('Could not create table.')
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment