From c36bd34a1ab4a5fea025e54c2938c488a3e916f7 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Sun, 3 Apr 2022 22:31:07 +0200 Subject: [PATCH] fix: Small UI fix on logs --- .../applications/[id]/logs/build/index.svelte | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/routes/applications/[id]/logs/build/index.svelte b/src/routes/applications/[id]/logs/build/index.svelte index da79168a7..d50eecd3b 100644 --- a/src/routes/applications/[id]/logs/build/index.svelte +++ b/src/routes/applications/[id]/logs/build/index.svelte @@ -81,7 +81,9 @@ } async function loadBuild(build) { buildId = build; - await goto(`/applications/${id}/logs/build?buildId=${buildId}`); + const queryParams = new URLSearchParams(window.location.search); + queryParams.set('buildId', buildId); + return history.pushState(null, null, '?' + queryParams.toString()); } @@ -195,10 +197,13 @@ {/each} - {#if builds.length > 0} -
- -
+ {#if !noMoreBuilds} + {#if buildCount > 5} +
+ +
+ {/if} {/if}