Skip to content

Commit

Permalink
feat: do not show archived inbox
Browse files Browse the repository at this point in the history
  • Loading branch information
akdasa committed Nov 9, 2024
1 parent 717c8d7 commit 0a93431
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
22 changes: 13 additions & 9 deletions src/library/inbox/containers/InboxTrackTableIsle.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
<template>
<Panel>
<InboxTracksTable
:rows="inboxTracks"
@open="onTrackSelected"
@refresh="onRefresh"
/>
</Panel>
<InboxTracksTable
:rows="inboxTracks"
@open="onTrackSelected"
@refresh="onRefresh"
/>
</template>


<script setup lang="ts">
import { useAsyncState } from "@vueuse/core"
import Panel from "primevue/panel"
import {
InboxTracksTable, type InboxTrackRow, getTitle, getDate,
getAuthor, getLocation, getReferences
Expand Down Expand Up @@ -49,7 +46,14 @@ const { state: inboxTracks, execute } = useAsyncState<InboxTrackRow[]>(
)
async function loadTableData(): Promise<InboxTrackRow[]> {
const inboxTracks = await inboxTracksService.getAll()
const inboxTracks = await inboxTracksService.getMany({
selector: {
$or: [
{ archived: { "$exists": false } },
{ archived: false }
]
}
})
const annotatedInboxTracks: InboxTrackRow[] = []
Expand Down
2 changes: 1 addition & 1 deletion submodules/lectorium-dal

0 comments on commit 0a93431

Please sign in to comment.