Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/src/composables/useCommunityService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
TaskColumn,
Topic,
Task,
MemoryEntry,
} from '@coasys/flux-api';
import { community as communityPredicates } from '@coasys/flux-constants';

Expand Down Expand Up @@ -121,6 +122,7 @@ export async function createCommunityService(): Promise<CommunityService> {
TaskBoard,
TaskColumn,
Task,
MemoryEntry,
]) {
await Model.register(perspective);
}
Expand Down
5 changes: 5 additions & 0 deletions app/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ const routes: Array<RouteRecordRaw> = [
name: 'community',
component: () => import(`@/views/main/community/CommunityView.vue`),
children: [
{
path: 'memory',
name: 'memory',
component: () => import(`@/views/main/community/memory/MemoryView.vue`),
},
{
path: ':channelId',
props: true,
Expand Down
6 changes: 3 additions & 3 deletions app/src/views/main/community/CommunityView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<!-- TODO: Move the logic below into seperate componenets -->

<div v-if="!isSynced && !route.params.channelId" class="center">
<div v-if="!isSynced && !route.params.channelId && route.name !== 'memory'" class="center">
<j-box py="800">
<j-flex gap="400" direction="column" a="center" j="center">
<j-box pb="500">
Expand All @@ -36,7 +36,7 @@
</j-box>
</div>

<div class="center" v-if="isSynced && !route.params.channelId && community && channelsWithConversations.length">
<div class="center" v-if="isSynced && !route.params.channelId && route.name !== 'memory' && community && channelsWithConversations.length">
<div class="center-inner">
<j-flex gap="600" direction="column" a="center" j="center">
<j-avatar :initials="`${community?.name}`.charAt(0)" size="xxl" :src="community.thumbnail || null" />
Expand Down Expand Up @@ -69,7 +69,7 @@
</div>
</div>

<div class="center" v-if="isSynced && !route.params.channelId && channelsWithConversations.length === 0">
<div class="center" v-if="isSynced && !route.params.channelId && route.name !== 'memory' && channelsWithConversations.length === 0">
<div class="center-inner">
<j-flex gap="500" direction="column" a="center" j="center">
<j-avatar :initials="`${community?.name}`.charAt(0)" size="xxl" :src="community?.thumbnail || null" />
Expand Down
Loading
Loading