mirror of
https://github.com/comatory/fb2iCal
synced 2025-06-05 22:09:25 +02:00
feature: track chunk loading in UI
This commit is contained in:
@ -8,6 +8,10 @@
|
||||
$: pendingRequest = $requestStore
|
||||
$: status = $parseStatusStore
|
||||
$: swStatus = $swStatusStore
|
||||
|
||||
const handleModuleLoadStart = () => parseStatusStore.set('Loading application data.')
|
||||
const handleModuleLoadEnd = () => parseStatusStore.set(null)
|
||||
const handleModuleLoadError = (error) => parseStatusStore.set('Failed to load application data.')
|
||||
</script>
|
||||
|
||||
<div class="input-container">
|
||||
@ -15,6 +19,9 @@
|
||||
{pending}
|
||||
{pendingRequest}
|
||||
{error}
|
||||
onModuleLoadStart={handleModuleLoadStart}
|
||||
onModuleLoadStop={handleModuleLoadEnd}
|
||||
onModuleLoadError={handleModuleLoadError}
|
||||
/>
|
||||
<Status
|
||||
{error}
|
||||
|
Reference in New Issue
Block a user