Implement background worker to make search response faster and avoid hanging the UI when there are a lot of files. Implement better toast messages for transitional events that automatically disappear.

This commit is contained in:
Leo Vasanko
2026-01-31 21:02:16 +00:00
parent 1e74245721
commit 40fb7bf398
8 changed files with 305 additions and 41 deletions
+2 -2
View File
@@ -70,7 +70,7 @@ const submit = async (ev: Event) => {
try {
if (form.passwordChange) {
if (!form.password) {
store.error = '⚠️ Current password is required'
store.showToast('⚠️ Current password is required')
password.value!.focus()
return
}
@@ -79,7 +79,7 @@ const submit = async (ev: Event) => {
close()
} catch (error) {
const httpError = error as ISimpleError
store.error = httpError.message || '🛑 Unknown error'
store.showToast(httpError.message || '🛑 Unknown error')
} finally {
confirmLoading.value = false
}