mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-07-18 05:48:10 -07:00
Hide error count in error toast if there is only 1 error
This commit is contained in:
committed by
Cooper Quintin
parent
cef94ba6b0
commit
7475cd5cd9
@@ -43,29 +43,43 @@
|
|||||||
Error Completing Action {current_error.times > 1 ? `x${current_error.times}` : ''}
|
Error Completing Action {current_error.times > 1 ? `x${current_error.times}` : ''}
|
||||||
</span>
|
</span>
|
||||||
<div class="flex items-center mb-2">
|
<div class="flex items-center mb-2">
|
||||||
<span>{pos + 1}/{action_errors.length}</span>
|
{#if action_errors.length > 1}
|
||||||
<button title="previous error" aria-label="previous error" onclick={prev_error}>
|
<span>{pos + 1}/{action_errors.length}</span>
|
||||||
<svg aria-hidden="true" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
<button title="previous error" aria-label="previous error" onclick={prev_error}>
|
||||||
<path
|
<svg
|
||||||
stroke="currentColor"
|
aria-hidden="true"
|
||||||
stroke-linecap="round"
|
width="24"
|
||||||
stroke-linejoin="round"
|
height="24"
|
||||||
stroke-width="2"
|
fill="none"
|
||||||
d="m 15.499979,19.499979 -6.9999997,-7 6.9999997,-6.9999997"
|
viewBox="0 0 24 24"
|
||||||
/>
|
>
|
||||||
</svg>
|
<path
|
||||||
</button>
|
stroke="currentColor"
|
||||||
<button title="next error" aria-label="next error" onclick={next_error}>
|
stroke-linecap="round"
|
||||||
<svg aria-hidden="true" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
stroke-linejoin="round"
|
||||||
<path
|
stroke-width="2"
|
||||||
stroke="currentColor"
|
d="m 15.499979,19.499979 -6.9999997,-7 6.9999997,-6.9999997"
|
||||||
stroke-linecap="round"
|
/>
|
||||||
stroke-linejoin="round"
|
</svg>
|
||||||
stroke-width="2"
|
</button>
|
||||||
d="m 8.5000207,5.4999793 7.0000003,6.9999997 -7.0000003,7"
|
<button title="next error" aria-label="next error" onclick={next_error}>
|
||||||
/>
|
<svg
|
||||||
</svg>
|
aria-hidden="true"
|
||||||
</button>
|
width="24"
|
||||||
|
height="24"
|
||||||
|
fill="none"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
stroke-width="2"
|
||||||
|
d="m 8.5000207,5.4999793 7.0000003,6.9999997 -7.0000003,7"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
{/if}
|
||||||
<button title="clear errors" aria-label="clear errors" onclick={clear_errors}>
|
<button title="clear errors" aria-label="clear errors" onclick={clear_errors}>
|
||||||
<svg style="width:24px;height:24px" viewBox="0 0 24 24">
|
<svg style="width:24px;height:24px" viewBox="0 0 24 24">
|
||||||
<path
|
<path
|
||||||
|
|||||||
Reference in New Issue
Block a user