[Merge] API

This commit is contained in:
Matej Glasnák committed 2023-01-31 15:56:25 +01:00
commit 9d1fd6c16b
11 files changed
+35 -34

No files matched your search

@@ -18,7 +18,7 @@
<script>
export default {
emits: ['deleted'],
emits: ['update'],
data() {
return {
@@ -39,9 +39,9 @@ export default {
async deleteTeam() {
try {
await this.$axios.delete(`v1/teams/${this.team.id}`)
await this.$axios.delete_auth(`v1/teams/${this.team.id}`)
this.visible = false
this.$emit('deleted', this.team)
this.$emit('update', this.team)
} catch (error) {
this.$toast.error(error)
}