mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-05-07 18:19:33 +00:00
feat: add row select count to library table
This commit is contained in:
parent
bf2e645daa
commit
7b92b594c5
2 changed files with 5 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ui",
|
||||
"version": "6.4.132",
|
||||
"version": "6.4.133",
|
||||
"license": "BUSL-1.1",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@9.15.5",
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@
|
|||
|
||||
const tableModel = table.createViewModel(columns)
|
||||
|
||||
const { headerRows, pageRows, tableAttrs, tableBodyAttrs, pluginStates } = tableModel
|
||||
const { headerRows, pageRows, rows, tableAttrs, tableBodyAttrs, pluginStates } = tableModel
|
||||
|
||||
async function playEntry ({ mediaID, episode, hash }: LibraryEntry) {
|
||||
if (!mediaID || !hash) return
|
||||
|
|
@ -164,6 +164,9 @@
|
|||
<Trash class={cn('size-4')} />
|
||||
</Button>
|
||||
</div>
|
||||
<div class='text-muted-foreground flex-1 text-sm text-right mb-1'>
|
||||
{Object.keys($selectedDataIds).length} of {$rows.length} row(s) selected.
|
||||
</div>
|
||||
<div class='rounded-md border size-full overflow-clip contain-strict'>
|
||||
<Table.Root {...$tableAttrs} class='max-h-full'>
|
||||
<Table.Header class='px-5'>
|
||||
|
|
|
|||
Loading…
Reference in a new issue