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:
dpschen 2021-10-31 13:39:37 +00:00 committed by konrad
parent ecb5be4b17
commit 28a448a1aa

View file

@ -163,6 +163,7 @@
<script>
import AsyncEditor from '@/components/input/AsyncEditor'
import {mapState} from 'vuex'
import { i18n } from '@/i18n'
import TeamService from '../../services/team'
import TeamModel from '../../models/team'
@ -224,7 +225,7 @@ export default {
async loadTeam() {
this.team = new TeamModel({id: this.teamId})
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)
},