mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
@@ -343,9 +343,7 @@ class TranscriptController:
|
|||||||
query = query.where(rooms.c.id == room_id)
|
query = query.where(rooms.c.id == room_id)
|
||||||
|
|
||||||
if search_term:
|
if search_term:
|
||||||
query = query.where(
|
query = query.where(transcripts.c.title.ilike(f"%{search_term}%"))
|
||||||
transcripts.c.title.ilike(f"%{search_term}%")
|
|
||||||
) # Assuming there's a 'title' column
|
|
||||||
|
|
||||||
query = query.with_only_columns(
|
query = query.with_only_columns(
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -307,6 +307,12 @@ export default function TranscriptBrowser() {
|
|||||||
Search
|
Search
|
||||||
</Button>
|
</Button>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
<Pagination
|
||||||
|
page={page}
|
||||||
|
setPage={setPage}
|
||||||
|
total={response?.total || 0}
|
||||||
|
size={response?.size || 0}
|
||||||
|
/>
|
||||||
<Box display={{ base: "none", md: "block" }}>
|
<Box display={{ base: "none", md: "block" }}>
|
||||||
<Table colorScheme="gray">
|
<Table colorScheme="gray">
|
||||||
<Thead>
|
<Thead>
|
||||||
@@ -485,12 +491,6 @@ export default function TranscriptBrowser() {
|
|||||||
))}
|
))}
|
||||||
</Stack>
|
</Stack>
|
||||||
</Box>
|
</Box>
|
||||||
<Pagination
|
|
||||||
page={page}
|
|
||||||
setPage={setPage}
|
|
||||||
total={response?.total || 0}
|
|
||||||
size={response?.items.length || 0}
|
|
||||||
/>
|
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user