hippofish/src/client/app/mobile/views/pages/messaging.vue

28 lines
719 B
Vue
Raw Normal View History

2018-02-20 06:16:41 +01:00
<template>
<mk-ui>
<span slot="header"><span style="margin-right:4px;"><fa :icon="['far', 'comments']"/></span>{{ $t('@.messaging') }}</span>
<x-messaging @navigate="navigate" :header-top="48"/>
2018-02-20 06:16:41 +01:00
</mk-ui>
</template>
<script lang="ts">
import Vue from 'vue';
import i18n from '../../../i18n';
2018-07-07 12:19:00 +02:00
import getAcct from '../../../../../misc/acct/render';
2018-03-27 09:51:12 +02:00
2018-02-20 06:16:41 +01:00
export default Vue.extend({
i18n: i18n(),
components: {
XMessaging: () => import('../../../common/views/components/messaging.vue').then(m => m.default)
},
2018-02-20 06:16:41 +01:00
mounted() {
2018-11-09 00:26:32 +01:00
document.title = `${this.$root.instanceName} ${this.$t('@.messaging')}`;
2018-02-20 06:16:41 +01:00
},
methods: {
navigate(user) {
2018-03-27 09:51:12 +02:00
(this as any).$router.push(`/i/messaging/${getAcct(user)}`);
2018-02-20 06:16:41 +01:00
}
}
});
</script>