2018-05-18 07:31:30 +02:00
|
|
|
<template>
|
|
|
|
<span class="mk-acct">
|
|
|
|
<span class="name">@{{ user.username }}</span>
|
2018-09-14 13:33:27 +02:00
|
|
|
<span class="host" :class="{ fade: $store.state.settings.contrastedAcct }" v-if="user.host || detail || $store.state.settings.showFullAcct">@{{ user.host || host }}</span>
|
2018-05-18 07:31:30 +02:00
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2018-09-05 20:21:11 +02:00
|
|
|
import { host } from '../../../config';
|
2018-05-18 07:31:30 +02:00
|
|
|
export default Vue.extend({
|
2018-09-05 20:21:11 +02:00
|
|
|
props: ['user', 'detail'],
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
host
|
|
|
|
};
|
|
|
|
}
|
2018-05-18 07:31:30 +02:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
|
.mk-acct
|
2018-09-06 22:45:13 +02:00
|
|
|
> .host.fade
|
2018-05-18 07:31:30 +02:00
|
|
|
opacity 0.5
|
|
|
|
</style>
|