mirror of
https://github.com/comatory/fb2iCal
synced 2025-02-14 18:50:48 +01:00
45 lines
871 B
Svelte
45 lines
871 B
Svelte
<style>
|
|
#status {
|
|
flex: 1;
|
|
height: 1rem;
|
|
margin: 5px;
|
|
}
|
|
|
|
.status-item {
|
|
min-width: 200px;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
import { parseStatusStore, requestStore, swStatusStore } from '../stores'
|
|
|
|
$: error = ($requestStore && $requestStore.error) ? $requestStore.error : null
|
|
$: pendingRequest = Boolean($requestStore && !$requestStore.error)
|
|
</script>
|
|
|
|
<div id='status'>
|
|
{#if error}
|
|
<div class='status-item'>
|
|
{error.toString()}
|
|
</div>
|
|
{/if}
|
|
{#if pendingRequest}
|
|
<div class='status-item'>
|
|
Fetching event {$requestStore.url}
|
|
</div>
|
|
{/if}
|
|
{#if $parseStatusStore}
|
|
<div class='status-item'>
|
|
{$parseStatusStore}
|
|
</div>
|
|
{/if}
|
|
{#if $swStatusStore}
|
|
<div class='status-item'>
|
|
{$swStatusStore}
|
|
</div>
|
|
{/if}
|
|
</div>
|