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