forked from coracle/flotilla
Stop propagation on thunk status
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import {nth} from "@welshman/lib"
|
||||
import {stopPropagation} from "svelte/legacy"
|
||||
import {nth, noop} from "@welshman/lib"
|
||||
import {PublishStatus} from "@welshman/net"
|
||||
import {
|
||||
MergedThunk,
|
||||
@@ -60,7 +61,7 @@
|
||||
{@const url = failedUrls[0]}
|
||||
{@const status = $thunk.status[url]}
|
||||
{@const message = $thunk.details[url]}
|
||||
<div class="flex justify-end px-1 text-xs {restProps.class}">
|
||||
<button class="flex justify-end px-1 text-xs {restProps.class}" onclick={stopPropagation(noop)}>
|
||||
<Tippy
|
||||
class="flex items-center {restProps.class}"
|
||||
component={ThunkStatusDetail}
|
||||
@@ -73,7 +74,7 @@
|
||||
</span>
|
||||
{/snippet}
|
||||
</Tippy>
|
||||
</div>
|
||||
</button>
|
||||
{:else if showPending}
|
||||
<div class="flex justify-end px-1 text-xs {restProps.class}">
|
||||
<span class="flex items-center gap-1 {restProps.class}">
|
||||
@@ -84,7 +85,7 @@
|
||||
class="underline transition-all"
|
||||
class:link={canCancel}
|
||||
class:opacity-25={!canCancel}
|
||||
onclick={abort}>
|
||||
onclick={stopPropagation(abort)}>
|
||||
Cancel
|
||||
</button>
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user