2018-02-14 21:36:42 -06:00
|
|
|
<template>
|
|
|
|
<div class="mkw-messaging">
|
2018-04-19 17:45:37 -05:00
|
|
|
<mk-widget-container :show-header="props.design == 0">
|
|
|
|
<template slot="header">%fa:comments%%i18n:@title%</template>
|
|
|
|
|
|
|
|
<mk-messaging ref="index" compact @navigate="navigate"/>
|
|
|
|
</mk-widget-container>
|
2018-02-14 21:36:42 -06:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2018-02-24 09:18:09 -06:00
|
|
|
import define from '../../../common/define-widget';
|
|
|
|
import MkMessagingRoomWindow from '../components/messaging-room-window.vue';
|
2018-02-21 10:08:49 -06:00
|
|
|
|
2018-02-14 21:36:42 -06:00
|
|
|
export default define({
|
|
|
|
name: 'messaging',
|
2018-02-21 00:30:03 -06:00
|
|
|
props: () => ({
|
2018-02-14 21:36:42 -06:00
|
|
|
design: 0
|
2018-02-21 00:30:03 -06:00
|
|
|
})
|
2018-02-14 21:36:42 -06:00
|
|
|
}).extend({
|
|
|
|
methods: {
|
|
|
|
navigate(user) {
|
2018-02-22 08:53:07 -06:00
|
|
|
(this as any).os.new(MkMessagingRoomWindow, {
|
|
|
|
user: user
|
|
|
|
});
|
2018-02-14 21:36:42 -06:00
|
|
|
},
|
|
|
|
func() {
|
|
|
|
if (this.props.design == 1) {
|
|
|
|
this.props.design = 0;
|
|
|
|
} else {
|
|
|
|
this.props.design++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
|
.mkw-messaging
|
2018-02-16 12:01:00 -06:00
|
|
|
> .mk-messaging
|
2018-02-14 21:36:42 -06:00
|
|
|
max-height 250px
|
|
|
|
overflow auto
|
|
|
|
|
|
|
|
</style>
|