From 8c16a542ceb3fe25bbe7844b0bc833ad7eddb572 Mon Sep 17 00:00:00 2001 From: Vyacheslav Tumanov Date: Wed, 3 May 2023 18:57:52 +0500 Subject: [PATCH] TSK-1400: show 0 in total (time spend reports) (#3127) Signed-off-by: Vyacheslav Tumanov --- .../components/issues/timereport/TimeSpendReportsList.svelte | 2 +- plugins/view-resources/src/components/Table.svelte | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/tracker-resources/src/components/issues/timereport/TimeSpendReportsList.svelte b/plugins/tracker-resources/src/components/issues/timereport/TimeSpendReportsList.svelte index e2894eb7e0..3222db4a07 100644 --- a/plugins/tracker-resources/src/components/issues/timereport/TimeSpendReportsList.svelte +++ b/plugins/tracker-resources/src/components/issues/timereport/TimeSpendReportsList.svelte @@ -81,7 +81,7 @@ on:click={(evt) => editSpendReport(evt, report, currentProject?.defaultTimeReportDay)} >
- + {#if currentProject && report.$lookup?.attachedTo} {getIssueId(currentProject, report.$lookup?.attachedTo)} {/if} diff --git a/plugins/view-resources/src/components/Table.svelte b/plugins/view-resources/src/components/Table.svelte index 6575cb8156..555890679f 100644 --- a/plugins/view-resources/src/components/Table.svelte +++ b/plugins/view-resources/src/components/Table.svelte @@ -108,7 +108,7 @@ query, (result) => { objects = result - total = result.total + total = result.total === -1 ? 0 : result.total objectsRecieved = true if (sortingFunction !== undefined) { const sf = sortingFunction @@ -358,7 +358,7 @@ {#if loading > 0}{/if} {/await} -{#if showFooter && total} +{#if showFooter}