mirror of
https://github.com/comatory/fb2iCal
synced 2025-02-17 12:10:36 +01:00
27 lines
603 B
Svelte
27 lines
603 B
Svelte
<script>
|
|
import { parseStatusStore, requestStore, swStatusStore } from '../stores'
|
|
import Input from './Input.svelte'
|
|
import Status from './Status.svelte'
|
|
|
|
$: error = ($requestStore && $requestStore.error) ? $requestStore.error : null
|
|
$: pending = Boolean($requestStore && !$requestStore.error)
|
|
$: pendingRequest = $requestStore
|
|
$: status = $parseStatusStore
|
|
$: swStatus = $swStatusStore
|
|
</script>
|
|
|
|
<div class="input-container">
|
|
<Input
|
|
{pending}
|
|
{pendingRequest}
|
|
{error}
|
|
/>
|
|
<Status
|
|
{error}
|
|
{pending}
|
|
{pendingRequest}
|
|
{status}
|
|
{swStatus}
|
|
/>
|
|
</div>
|