Show host in local user detail (#2634)

This commit is contained in:
MeiMei
2018-09-06 03:21:11 +09:00
committed by syuilo
parent 498094b3c7
commit ebd1c877ad
3 changed files with 10 additions and 4 deletions

View File

@ -1,14 +1,20 @@
<template>
<span class="mk-acct">
<span class="name">@{{ user.username }}</span>
<span class="host" v-if="user.host">@{{ user.host }}</span>
<span class="host" v-if="user.host || detail">@{{ user.host || host }}</span>
</span>
</template>
<script lang="ts">
import Vue from 'vue';
import { host } from '../../../config';
export default Vue.extend({
props: ['user']
props: ['user', 'detail'],
data() {
return {
host
};
}
});
</script>