fix: loadTeam in EditTeam (#922)
Co-authored-by: Dominik Pschenitschni <mail@celement.de> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/922 Reviewed-by: konrad <k@knt.li> Co-authored-by: dpschen <dpschen@noreply.kolaente.de> Co-committed-by: dpschen <dpschen@noreply.kolaente.de>
This commit is contained in:
parent
ecb5be4b17
commit
28a448a1aa
1 changed files with 2 additions and 1 deletions
|
@ -163,6 +163,7 @@
|
||||||
<script>
|
<script>
|
||||||
import AsyncEditor from '@/components/input/AsyncEditor'
|
import AsyncEditor from '@/components/input/AsyncEditor'
|
||||||
import {mapState} from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
|
import { i18n } from '@/i18n'
|
||||||
|
|
||||||
import TeamService from '../../services/team'
|
import TeamService from '../../services/team'
|
||||||
import TeamModel from '../../models/team'
|
import TeamModel from '../../models/team'
|
||||||
|
@ -224,7 +225,7 @@ export default {
|
||||||
async loadTeam() {
|
async loadTeam() {
|
||||||
this.team = new TeamModel({id: this.teamId})
|
this.team = new TeamModel({id: this.teamId})
|
||||||
this.team = await this.teamService.get(this.team)
|
this.team = await this.teamService.get(this.team)
|
||||||
this.title = this.$t('team.edit.title', {team: this.team.name})
|
this.title = i18n.global.t('team.edit.title', {team: this.team.name})
|
||||||
this.setTitle(this.title)
|
this.setTitle(this.title)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue