mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-11 04:53:09 +02:00
25 lines
541 B
Vue
25 lines
541 B
Vue
<template>
|
|
<span class="mk-acct">
|
|
<span class="name">@{{ user.username }}</span>
|
|
<span class="host" :class="{ fade: $store.state.settings.contrastedAcct }" v-if="user.host || detail || $store.state.settings.showFullAcct">@{{ user.host || host }}</span>
|
|
</span>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
import { host } from '../../../config';
|
|
export default Vue.extend({
|
|
props: ['user', 'detail'],
|
|
data() {
|
|
return {
|
|
host
|
|
};
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<style lang="stylus" scoped>
|
|
.mk-acct
|
|
> .host.fade
|
|
opacity 0.5
|
|
</style>
|