misskey/src/web/app/desktop/tags/pages/messaging-room.tag
2017-11-13 07:46:33 +09:00

38 lines
671 B
HTML

<mk-messaging-room-page>
<mk-messaging-room if={ user } user={ user } isNaked={ true }/>
<style>
:scope
display block
background #fff
</style>
<script>
import Progress from '../../../common/scripts/loading';
this.mixin('api');
this.fetching = true;
this.user = null;
this.on('mount', () => {
Progress.start();
document.documentElement.style.background = '#fff';
this.api('users/show', {
username: this.opts.user
}).then(user => {
this.update({
fetching: false,
user: user
});
document.title = 'メッセージ: ' + this.user.name;
Progress.done();
});
});
</script>
</mk-messaging-room-page>