mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03:00
UBER-654 Fix table view stats display (#3540)
Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
parent
7cabfc746e
commit
746d8a1c41
@ -362,7 +362,7 @@
|
||||
{#if departmentStaff.length}
|
||||
{#if loading}
|
||||
<Loading />
|
||||
{:else if viewlet}
|
||||
{:else}
|
||||
<div class="ac-header full divide">
|
||||
<div class="clear-mins" />
|
||||
<div class="ac-header-full small-gap">
|
||||
@ -370,15 +370,17 @@
|
||||
<ViewletSettingButton viewletQuery={{ _id: hr.viewlet.StaffStats }} bind:viewlet bind:preference bind:loading />
|
||||
</div>
|
||||
</div>
|
||||
{#await createConfig(viewlet, preference, month) then config}
|
||||
<TableBrowser
|
||||
tableId={'exportableData'}
|
||||
_class={hr.mixin.Staff}
|
||||
query={{ _id: { $in: departmentStaff.map((it) => it._id) } }}
|
||||
{config}
|
||||
options={viewlet.options}
|
||||
/>
|
||||
{/await}
|
||||
{#if viewlet}
|
||||
{#await createConfig(viewlet, preference, month) then config}
|
||||
<TableBrowser
|
||||
tableId={'exportableData'}
|
||||
_class={hr.mixin.Staff}
|
||||
query={{ _id: { $in: departmentStaff.map((it) => it._id) } }}
|
||||
{config}
|
||||
options={viewlet.options}
|
||||
/>
|
||||
{/await}
|
||||
{/if}
|
||||
{/if}
|
||||
{:else}
|
||||
<div class="flex-center h-full w-full flex-grow fs-title">
|
||||
|
Loading…
Reference in New Issue
Block a user