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

Display potential error

parent 16d4a0cc
No related branches found
No related tags found
3 merge requests!23Sprint results,!18Merge Conflicts,!17UI sprint 2
......@@ -38,7 +38,7 @@
</v-stepper-step>
<v-stepper-content step="3">
<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-text-field v-model="c.name" disabled required label="Name" />
</v-col>
......@@ -148,13 +148,15 @@ export default {
let res
try {
res = await this.$axios.post(url, data)
// TODO check success
this.newTableId = res.data.tableId // FIXME
this.newTableId = res.data.id
} catch (err) {
console.log(err)
}
if (res && res.data && res.data.id) {
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