1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-19 14:14:05 +00:00

Zenity progress bar

This commit is contained in:
2023-02-21 20:11:40 +01:00
parent 44c94d0d72
commit 5dd9e0573d
8 changed files with 63 additions and 3 deletions

View File

@ -5,6 +5,7 @@
import ObjectGrid from '$components/objectgrid.svelte';
import input from '$lib/actions/input';
import { deepClone } from '$lib/objects';
import busy from '$lib/stores/busy';
import queries from '$lib/stores/queries';
import applicationSettings from '$lib/stores/settings';
import views from '$lib/stores/views';
@ -41,6 +42,7 @@
$: activePage = (submittedForm.limit && submittedForm.skip && result?.results?.length) ? submittedForm.skip / submittedForm.limit : 0;
async function submitQuery() {
busy.start();
activePath = [];
const newResult = await FindItems(collection.hostKey, collection.dbKey, collection.key, JSON.stringify(form));
if (newResult) {
@ -48,6 +50,7 @@
result = newResult;
submittedForm = deepClone(form);
}
busy.end();
resetFocus();
}