summaryrefslogtreecommitdiff
path: root/src/client/app/mobile/views/widgets/profile.vue
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-09 18:52:29 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-09 18:52:29 +0900
commit98fe9c39ebd23bc6359960cf56e51604050f5b6c (patch)
tree6afadf6ec5daf53ac92bc8349bb9460f35e4c506 /src/client/app/mobile/views/widgets/profile.vue
parentFix bug (diff)
downloadmisskey-98fe9c39ebd23bc6359960cf56e51604050f5b6c.tar.gz
misskey-98fe9c39ebd23bc6359960cf56e51604050f5b6c.tar.bz2
misskey-98fe9c39ebd23bc6359960cf56e51604050f5b6c.zip
Refactor
Diffstat (limited to 'src/client/app/mobile/views/widgets/profile.vue')
-rw-r--r--src/client/app/mobile/views/widgets/profile.vue9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/client/app/mobile/views/widgets/profile.vue b/src/client/app/mobile/views/widgets/profile.vue
index bd257a3ff3..502f886ceb 100644
--- a/src/client/app/mobile/views/widgets/profile.vue
+++ b/src/client/app/mobile/views/widgets/profile.vue
@@ -8,23 +8,16 @@
:src="`${os.i.avatarUrl}?thumbnail&size=96`"
alt="avatar"
/>
- <router-link :class="$style.name" :to="`/@${os.i.username}`">{{ name }}</router-link>
+ <router-link :class="$style.name" :to="os.i | userPage">{{ os.i | userName }}</router-link>
</mk-widget-container>
</div>
</template>
<script lang="ts">
import define from '../../../common/define-widget';
-import getUserName from '../../../../../renderers/get-user-name';
export default define({
name: 'profile'
-}).extend({
- computed: {
- name() {
- return getUserName(this.os.i);
- }
- }
});
</script>