TSK-1400: show 0 in total (time spend reports) (#3127)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2023-05-03 18:57:52 +05:00 committed by GitHub
parent 0eb6485bca
commit 8c16a542ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@
on:click={(evt) => editSpendReport(evt, report, currentProject?.defaultTimeReportDay)} on:click={(evt) => editSpendReport(evt, report, currentProject?.defaultTimeReportDay)}
> >
<div class="flex-row-center clear-mins gap-2 flex-grow mr-4" class:p-text={twoRows}> <div class="flex-row-center clear-mins gap-2 flex-grow mr-4" class:p-text={twoRows}>
<FixedColumn key={'tmiespend_issue'} justify={'left'} addClass={'fs-bold'}> <FixedColumn key={'timespend_issue'} justify={'left'} addClass={'fs-bold'}>
{#if currentProject && report.$lookup?.attachedTo} {#if currentProject && report.$lookup?.attachedTo}
{getIssueId(currentProject, report.$lookup?.attachedTo)} {getIssueId(currentProject, report.$lookup?.attachedTo)}
{/if} {/if}

View File

@ -108,7 +108,7 @@
query, query,
(result) => { (result) => {
objects = result objects = result
total = result.total total = result.total === -1 ? 0 : result.total
objectsRecieved = true objectsRecieved = true
if (sortingFunction !== undefined) { if (sortingFunction !== undefined) {
const sf = sortingFunction const sf = sortingFunction
@ -358,7 +358,7 @@
</table> </table>
{#if loading > 0}<Loading />{/if} {#if loading > 0}<Loading />{/if}
{/await} {/await}
{#if showFooter && total} {#if showFooter}
<div class="space" /> <div class="space" />
<div class="footer" style="width: {width}px;"> <div class="footer" style="width: {width}px;">
<div class="content" class:padding={showNotification || enableChecking}> <div class="content" class:padding={showNotification || enableChecking}>