[napajanie modalov na BE]

This commit is contained in:
romankko2 committed 2023-01-26 21:11:53 +01:00
1 parent 26792a85a6
commit 4c8ee66cd6
34 files changed
+494 -396

No files matched your search

+8 -4
View File
@@ -1,6 +1,6 @@
<template>
<W-loadable :content="teams">
<A-teams-table :teams="teams" @refresh="loadData" />
<A-teams-table :teams="teams" />
</W-loadable>
</template>
@@ -19,15 +19,19 @@ export default {
},
async created() {
await this.loadData()
await this._loadData()
},
mounted() {
this.$events.on('on-team-deleted', () => this._loadData())
},
methods: {
async loadData() {
async _loadData() {
this.teams = null
try {
this.teams = await this.$axios.get_auth_data('v1/teamsx')
this.teams = await this.$axios.get_auth_data('v1/teams')
} catch (error) {
this.teams = {error}
}