mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
parent
6b7f3a9f7b
commit
df76f2b992
@ -39,7 +39,7 @@
|
||||
|
||||
.spinner-container .inner {
|
||||
margin: auto;
|
||||
opacity: 0;
|
||||
opacity: 0.5;
|
||||
animation-name: makeVisible;
|
||||
animation-duration: 0.25s;
|
||||
animation-delay: 0.1s;
|
||||
|
@ -36,6 +36,7 @@
|
||||
let sortKey = 'modifiedOn'
|
||||
let sortOrder = SortingOrder.Descending
|
||||
let selectRow: number | undefined = undefined
|
||||
let loading = false
|
||||
|
||||
let objects: Doc[]
|
||||
|
||||
@ -48,11 +49,13 @@
|
||||
sortOrder: SortingOrder,
|
||||
options?: FindOptions<Doc>
|
||||
) {
|
||||
loading = true
|
||||
q.query(
|
||||
_class,
|
||||
query,
|
||||
(result) => {
|
||||
objects = result
|
||||
loading = false
|
||||
},
|
||||
{ sort: { [sortKey]: sortOrder }, ...options, limit: 200 }
|
||||
)
|
||||
@ -116,7 +119,9 @@
|
||||
</script>
|
||||
|
||||
{#await buildModel({ client, _class, keys: config, options })}
|
||||
<Loading />
|
||||
{#if !loading}
|
||||
<Loading />
|
||||
{/if}
|
||||
{:then model}
|
||||
<table class="table-body" class:enableChecking>
|
||||
<thead>
|
||||
@ -223,6 +228,10 @@
|
||||
</table>
|
||||
{/await}
|
||||
|
||||
{#if loading}
|
||||
<Loading/>
|
||||
{/if}
|
||||
|
||||
<style lang="scss">
|
||||
.table-body {
|
||||
width: 100%;
|
||||
|
Loading…
Reference in New Issue
Block a user