UBER-654 Fix table view stats display (#3540)

Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2023-08-01 17:32:03 +07:00 committed by GitHub
parent 7cabfc746e
commit 746d8a1c41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -362,7 +362,7 @@
{#if departmentStaff.length} {#if departmentStaff.length}
{#if loading} {#if loading}
<Loading /> <Loading />
{:else if viewlet} {:else}
<div class="ac-header full divide"> <div class="ac-header full divide">
<div class="clear-mins" /> <div class="clear-mins" />
<div class="ac-header-full small-gap"> <div class="ac-header-full small-gap">
@ -370,15 +370,17 @@
<ViewletSettingButton viewletQuery={{ _id: hr.viewlet.StaffStats }} bind:viewlet bind:preference bind:loading /> <ViewletSettingButton viewletQuery={{ _id: hr.viewlet.StaffStats }} bind:viewlet bind:preference bind:loading />
</div> </div>
</div> </div>
{#await createConfig(viewlet, preference, month) then config} {#if viewlet}
<TableBrowser {#await createConfig(viewlet, preference, month) then config}
tableId={'exportableData'} <TableBrowser
_class={hr.mixin.Staff} tableId={'exportableData'}
query={{ _id: { $in: departmentStaff.map((it) => it._id) } }} _class={hr.mixin.Staff}
{config} query={{ _id: { $in: departmentStaff.map((it) => it._id) } }}
options={viewlet.options} {config}
/> options={viewlet.options}
{/await} />
{/await}
{/if}
{/if} {/if}
{:else} {:else}
<div class="flex-center h-full w-full flex-grow fs-title"> <div class="flex-center h-full w-full flex-grow fs-title">