feat: messaging room banner

This commit is contained in:
Kainoa Kanter 2023-04-07 23:55:03 -07:00
parent 4a1a954386
commit 594ee74324

View File

@ -6,6 +6,12 @@
@drop.prevent.stop="onDrop" @drop.prevent.stop="onDrop"
> >
<div class="_content mk-messaging-room"> <div class="_content mk-messaging-room">
<template #header
><MkPageHeader
:actions="headerActions"
:tabs="headerTabs"
:display-back-button="true"
/></template>
<MkSpacer :content-max="800"> <MkSpacer :content-max="800">
<div class="body"> <div class="body">
<MkPagination <MkPagination
@ -328,12 +334,17 @@ function onVisibilitychange() {
} }
} }
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
onMounted(() => { onMounted(() => {
fetch(); fetch();
definePageMetadata( definePageMetadata(
computed(() => ({ computed(() => ({
title: group != null ? group.name : user?.name, title: group != null ? group.name : user?.name,
icon: "ph-chats-teardrop ph-bold ph-lg", icon: "ph-chats-teardrop ph-bold ph-lg",
avatar: group != null ? null : user,
})) }))
); );
}); });