mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
UBER-500: Confusing Show More button in table (#3590)
Signed-off-by: Maxim Karmatskikh <mkarmatskih@gmail.com>
This commit is contained in:
parent
18f328e433
commit
85d1a9521c
@ -80,6 +80,7 @@
|
||||
config={preference?.config ?? viewlet.config}
|
||||
options={viewlet.options}
|
||||
query={resultQuery}
|
||||
totalQuery={query}
|
||||
showNotification
|
||||
/>
|
||||
{/if}
|
||||
|
@ -131,6 +131,7 @@
|
||||
config={preference?.config ?? viewlet.config}
|
||||
options={viewlet.options}
|
||||
query={resultQuery}
|
||||
totalQuery={baseQuery}
|
||||
showNotification
|
||||
/>
|
||||
{/if}
|
||||
|
@ -244,6 +244,7 @@
|
||||
query={{
|
||||
...resultQuery
|
||||
}}
|
||||
totalQuery={{}}
|
||||
showNotification
|
||||
/>
|
||||
{/if}
|
||||
|
@ -189,6 +189,7 @@
|
||||
...resultQuery,
|
||||
archived
|
||||
}}
|
||||
totalQuery={{}}
|
||||
showNotification
|
||||
/>
|
||||
{/if}
|
||||
|
@ -384,15 +384,21 @@
|
||||
<span class="select-text">
|
||||
<Label label={view.string.Total} params={{ total: gtotal }} />
|
||||
</span>
|
||||
{#if objects.length > 0 && objects.length < gtotal}
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
|
||||
{#if objects.length > 0 && (total !== gtotal || objects.length < total)}
|
||||
<span class="select-text ml-2">
|
||||
<Label
|
||||
label={view.string.Shown}
|
||||
params={{ total: objects.length === total ? -1 : total, len: objects.length }}
|
||||
params={{
|
||||
total: objects.length === total || total === gtotal ? -1 : total,
|
||||
len: objects.length
|
||||
}}
|
||||
/>
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
{#if objects.length > 0 && objects.length < total}
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<Button
|
||||
label={ui.string.ShowMore}
|
||||
kind={'ghost'}
|
||||
|
Loading…
Reference in New Issue
Block a user