bugy + CR

This commit is contained in:
romankko2 committed 2023-09-05 00:31:31 +02:00
1 parent 8972b538ea
commit 5c8daca94f
11 files changed
+48 -26

No files matched your search

@@ -113,10 +113,14 @@ export default {
try {
if (this.team.id) {
const { team } = await this.$axios.put_auth(`v1/teams/${this.team.id}`, this.team)
this.$store.commit('tm/update_team', team)
const fullTeamResource = await this.$axios.get_auth_data(`v1/teams/${team.id}`)
this.$store.commit('tm/update_team', fullTeamResource)
} else {
const { team } = await this.$axios.post_auth(`v1/teams`, this.team)
this.$store.commit('tm/save_team', team)
const fullTeamResource = await this.$axios.get_auth_data(`v1/teams/${team.id}`)
this.$store.commit('tm/save_team', fullTeamResource)
}
this.closeModal()