Small changes to the prompt

This commit is contained in:
Spxg
2025-05-18 20:55:03 +08:00
parent 65742e09a3
commit d0c7cbc980
2 changed files with 4 additions and 4 deletions

View File

@@ -82,7 +82,7 @@ pub fn Status() -> impl IntoView {
let import_progress = move || { let import_progress = move || {
if let Some(progress) = &*state.import_progress().read() { if let Some(progress) = &*state.import_progress().read() {
let filename = format!("Filename: {}", progress.filename); let filename = format!("Filename: {}", progress.filename);
let loading = format!("Loading: {} of {} bytes.", progress.loaded, progress.total); let loading = format!("Loading: {} of {} bytes", progress.loaded, progress.total);
let status = if progress.loaded == progress.total { let status = if progress.loaded == progress.total {
view! { <p>"Loading completed"</p> }.into_any() view! { <p>"Loading completed"</p> }.into_any()
@@ -94,9 +94,9 @@ pub fn Status() -> impl IntoView {
match &progress.opened { match &progress.opened {
Some(success) => { Some(success) => {
if *success { if *success {
view! { <p>"Process success"</p> }.into_any() view! { <p>"Processing completed"</p> }.into_any()
} else { } else {
view! { <p>"Process failed"</p> }.into_any() view! { <p>"Processing failed"</p> }.into_any()
} }
} }
None => view! { <p>"Processing..."</p> }.into_any(), None => view! { <p>"Processing..."</p> }.into_any(),

View File

@@ -11,7 +11,7 @@ use crate::{FragileComfirmed, SQLightError, SQLiteStatementResult, WorkerHandle}
const DEFAULT_CODE: &str = "PRAGMA page_size=4096; const DEFAULT_CODE: &str = "PRAGMA page_size=4096;
CREATE TABLE IF NOT EXISTS blobs ( CREATE TABLE IF NOT EXISTS blobs (
id INTEGER PRIMARY KEY, id INTEGER PRIMARY KEY,
data BLOB data BLOB
); );