Skip to content

Commit

Permalink
add unhealthy to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
KorbinianK committed Jan 24, 2024
1 parent aa5b302 commit 6cc007b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import DesktopOrLarger from '$components/DesktopOrLarger/DesktopOrLarger.svelte';
import { classNames } from '$lib/util/classNames';
import { loading as loadingStore } from '$stores';
export let refreshData: () => void;
export let filteredGuardianProvers: Guardian[] = [];
export let loading: boolean = false;
Expand All @@ -31,6 +33,8 @@
$: selectedStatus = null;
$: spin = loading || $loadingStore;
$: if (selectedStatus !== null) {
filtered = true;
filterByStatus(selectedStatus);
Expand All @@ -47,7 +51,7 @@

<div class={classes}>
<button class="btn btn-xs w-[36px] h-[36px] rounded-full" on:click={refreshData}
><RotatingIcon type="refresh" bind:loading /></button
><RotatingIcon type="refresh" bind:loading={spin} /></button
>
<StatusFilterDropdown bind:selectedStatus />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
const options = [
{ value: null, label: $t('filter.guardian_status.all') },
{ value: GuardianProverStatus.DEAD, label: $t('filter.guardian_status.dead') },
{ value: GuardianProverStatus.UNHEALTHY, label: $t('filter.guardian_status.unhealthy') },
{ value: GuardianProverStatus.ALIVE, label: $t('filter.guardian_status.alive') }
];
Expand Down

0 comments on commit 6cc007b

Please sign in to comment.