Browse Source

fix front page project list headers being shown on empty lists.

main
Gisle Aune 4 years ago
parent
commit
9558c8e547
  1. 4
      svelte-ui/src/pages/FrontPage.svelte

4
svelte-ui/src/pages/FrontPage.svelte

@ -96,14 +96,14 @@
{/if} {/if}
</div> </div>
<div class="right"> <div class="right">
{#if !$fpProjectStore.loading || $fpProjectStore.projects.length > 0}
{#if !$fpProjectStore.loading && $fpProjectStore.projects.length > 0}
<h1>Upcoming Deadlines</h1> <h1>Upcoming Deadlines</h1>
{/if} {/if}
{#each sortedProjects as project (project.id)} {#each sortedProjects as project (project.id)}
<ProjectEntry isFake={fakeMap[project.id]} hideInactive project={project} /> <ProjectEntry isFake={fakeMap[project.id]} hideInactive project={project} />
{/each} {/each}
{#if !$fpProjectStore2.loading || $fpProjectStore2.projects.length > 0}
{#if !$fpProjectStore2.loading && $fpProjectStore2.projects.length > 0}
<h1>Starred Projects</h1> <h1>Starred Projects</h1>
{/if} {/if}
{#each $fpProjectStore2.projects as project (project.id)} {#each $fpProjectStore2.projects as project (project.id)}

Loading…
Cancel
Save