mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
TSK-1400: show 0 in total (time spend reports) (#3127)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
0eb6485bca
commit
8c16a542ce
@ -81,7 +81,7 @@
|
||||
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}>
|
||||
<FixedColumn key={'tmiespend_issue'} justify={'left'} addClass={'fs-bold'}>
|
||||
<FixedColumn key={'timespend_issue'} justify={'left'} addClass={'fs-bold'}>
|
||||
{#if currentProject && report.$lookup?.attachedTo}
|
||||
{getIssueId(currentProject, report.$lookup?.attachedTo)}
|
||||
{/if}
|
||||
|
@ -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 @@
|
||||
</table>
|
||||
{#if loading > 0}<Loading />{/if}
|
||||
{/await}
|
||||
{#if showFooter && total}
|
||||
{#if showFooter}
|
||||
<div class="space" />
|
||||
<div class="footer" style="width: {width}px;">
|
||||
<div class="content" class:padding={showNotification || enableChecking}>
|
||||
|
Loading…
Reference in New Issue
Block a user