1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-19 00:58:12 +09:00
hotomoe/src/web/app/desktop/views/pages/messaging-room.vue

43 lines
739 B
Vue
Raw Normal View History

2018-02-16 17:20:55 +09:00
<template>
<div class="mk-messaging-room-page">
<mk-messaging-room v-if="user" :user="user" is-naked/>
</div>
</template>
<script lang="ts">
import Vue from 'vue';
import Progress from '../../../common/scripts/loading';
export default Vue.extend({
props: ['username'],
data() {
return {
fetching: true,
user: null
};
},
mounted() {
Progress.start();
document.documentElement.style.background = '#fff';
2018-02-18 12:35:18 +09:00
(this as any).api('users/show', {
2018-02-16 17:20:55 +09:00
username: this.username
}).then(user => {
this.user = user;
2018-02-19 23:37:09 +09:00
this.fetching = false;
2018-02-16 17:20:55 +09:00
document.title = 'メッセージ: ' + this.user.name;
Progress.done();
});
}
});
</script>
<style lang="stylus" scoped>
.mk-messaging-room-page
background #fff
</style>