mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-19 14:14:05 +00:00
Made harsh loading/error experience friendlier
This commit is contained in:
@ -46,8 +46,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
querying = true;
|
||||
const progress = startProgress('Performing query…');
|
||||
querying = `Querying ${collection.key}…`;
|
||||
activePath = [];
|
||||
const newResult = await FindItems(collection.hostKey, collection.dbKey, collection.key, JSON.stringify(form));
|
||||
|
||||
@ -57,7 +56,6 @@
|
||||
submittedForm = deepClone(form);
|
||||
}
|
||||
|
||||
progress.end();
|
||||
resetFocus();
|
||||
querying = false;
|
||||
}
|
||||
@ -231,6 +229,9 @@
|
||||
hideObjectIndicators={$views[collection.viewKey]?.hideObjectIndicators}
|
||||
bind:activePath
|
||||
on:trigger={e => openJson(e.detail?.index)}
|
||||
errorTitle={result.errorTitle}
|
||||
errorDescription={result.errorDescription}
|
||||
busy={querying}
|
||||
/>
|
||||
{:else}
|
||||
<Grid
|
||||
@ -242,6 +243,9 @@
|
||||
items={result.results ? result.results.map(r => EJSON.deserialize(r)) : []}
|
||||
bind:activePath
|
||||
on:trigger={e => openJson(e.detail?.index)}
|
||||
errorTitle={result.errorTitle}
|
||||
errorDescription={result.errorDescription}
|
||||
busy={querying}
|
||||
/>
|
||||
{/if}
|
||||
{/key}
|
||||
|
Reference in New Issue
Block a user