2018-02-16 10:01:36 +02:00
|
|
|
<template>
|
2018-09-17 23:35:06 +03:00
|
|
|
<mk-window ref="window" width="500px" height="560px" @closed="destroyDom">
|
2018-11-08 20:44:35 +02:00
|
|
|
<span slot="header" :class="$style.header"><fa icon="comments"/>{{ $t('title') }}</span>
|
2018-02-16 10:01:36 +02:00
|
|
|
<mk-messaging :class="$style.content" @navigate="navigate"/>
|
|
|
|
</mk-window>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2018-11-08 20:44:35 +02:00
|
|
|
import i18n from '../../../i18n';
|
2018-02-18 16:51:41 +02:00
|
|
|
import MkMessagingRoomWindow from './messaging-room-window.vue';
|
|
|
|
|
2018-02-16 10:01:36 +02:00
|
|
|
export default Vue.extend({
|
2018-11-08 20:44:35 +02:00
|
|
|
i18n: i18n('desktop/views/components/messaging-window.vue'),
|
2018-02-16 10:01:36 +02:00
|
|
|
methods: {
|
|
|
|
navigate(user) {
|
2018-11-09 01:13:34 +02:00
|
|
|
this.$root.new(MkMessagingRoomWindow, {
|
2018-02-22 16:53:07 +02:00
|
|
|
user: user
|
|
|
|
});
|
2018-02-16 10:01:36 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" module>
|
|
|
|
.header
|
2018-11-05 18:40:11 +02:00
|
|
|
> [data-icon]
|
2018-02-16 10:01:36 +02:00
|
|
|
margin-right 4px
|
|
|
|
|
|
|
|
.content
|
|
|
|
height 100%
|
|
|
|
overflow auto
|
|
|
|
|
|
|
|
</style>
|