treewide: complete book management interface
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: If5a21f16221f3c56a8008e139f93edc46a6a6964
This commit is contained in:
parent
bda36ac152
commit
2f31242442
23 changed files with 1693 additions and 126 deletions
|
|
@ -54,7 +54,7 @@ pub fn Import(
|
|||
{
|
||||
let (completed, total) = import_progress;
|
||||
let has_progress = total > 0;
|
||||
let pct = if total > 0 { (completed * 100) / total } else { 0 };
|
||||
let pct = (completed * 100).checked_div(total).unwrap_or(0);
|
||||
let queue_count = import_queue.len();
|
||||
rsx! {
|
||||
div { class: "import-status-panel",
|
||||
|
|
|
|||
|
|
@ -612,6 +612,9 @@ pub fn Library(
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let card_click = {
|
||||
let id = item.id.clone();
|
||||
move |_| on_select.call(id.clone())
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ pub fn Statistics(
|
|||
|
||||
|
||||
|
||||
|
||||
if !s.media_by_type.is_empty() {
|
||||
div { class: "card mt-16",
|
||||
h4 { class: "card-title", "Media by Type" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue