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,6 +370,7 @@
<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>
{#if viewlet}
{#await createConfig(viewlet, preference, month) then config} {#await createConfig(viewlet, preference, month) then config}
<TableBrowser <TableBrowser
tableId={'exportableData'} tableId={'exportableData'}
@ -380,6 +381,7 @@
/> />
{/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">
<Label label={hr.string.NoEmployeesInDepartment} /> <Label label={hr.string.NoEmployeesInDepartment} />