diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-07 13:03:19 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-07 13:03:19 +0900 |
| commit | ddced43ec7251fccaf915028df5d3b25399a4499 (patch) | |
| tree | 8cd96373981f523967926b6014c640e2b48c00d3 /src/client/app/mobile/views/pages/following.vue | |
| parent | Ignore post that not public (diff) | |
| parent | Merge pull request #1410 from akihikodaki/objec (diff) | |
| download | misskey-ddced43ec7251fccaf915028df5d3b25399a4499.tar.gz misskey-ddced43ec7251fccaf915028df5d3b25399a4499.tar.bz2 misskey-ddced43ec7251fccaf915028df5d3b25399a4499.zip | |
Merge branch 'master' into refactor
Diffstat (limited to 'src/client/app/mobile/views/pages/following.vue')
| -rw-r--r-- | src/client/app/mobile/views/pages/following.vue | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/client/app/mobile/views/pages/following.vue b/src/client/app/mobile/views/pages/following.vue index 3690536cf5..cc2442e476 100644 --- a/src/client/app/mobile/views/pages/following.vue +++ b/src/client/app/mobile/views/pages/following.vue @@ -2,7 +2,7 @@ <mk-ui> <template slot="header" v-if="!fetching"> <img :src="`${user.avatarUrl}?thumbnail&size=64`" alt=""> - {{ '%i18n:mobile.tags.mk-user-following-page.following-of%'.replace('{}', user.name) }} + {{ '%i18n:mobile.tags.mk-user-following-page.following-of%'.replace('{}', name) }} </template> <mk-users-list v-if="!fetching" @@ -20,6 +20,7 @@ import Vue from 'vue'; import Progress from '../../../common/scripts/loading'; import parseAcct from '../../../../../acct/parse'; +import getUserName from '../../../../../renderers/get-user-name'; export default Vue.extend({ data() { @@ -28,6 +29,11 @@ export default Vue.extend({ user: null }; }, + computed: { + name() { + return getUserName(this.user); + } + }, watch: { $route: 'fetch' }, @@ -46,7 +52,7 @@ export default Vue.extend({ this.user = user; this.fetching = false; - document.title = '%i18n:mobile.tags.mk-user-followers-page.followers-of%'.replace('{}', user.name) + ' | Misskey'; + document.title = '%i18n:mobile.tags.mk-user-followers-page.followers-of%'.replace('{}', this.name) + ' | Misskey'; }); }, onLoaded() { |