remove (unused) pagination

feat/vaults
Tomáš Mládek 2021-12-08 11:41:19 +01:00
parent 1d62f952bf
commit aaa511fc3f
1 changed files with 0 additions and 21 deletions

View File

@ -22,10 +22,6 @@
$: showAttribute = columns.includes("attribute");
$: showValue = columns.includes("value");
// Pagination
let currentDisplay = 999;
const MAX_DISPLAY = 50;
// Editing
let newEntryAttribute = "'";
let newEntryValue = "";
@ -232,19 +228,6 @@
</tr>
{/each}
{#if attributes.length > currentDisplay}
<tr>
<td colspan={editable ? 3 : 2}>
<sl-button
class="more-button"
on:click={(currentDisplay += MAX_DISPLAY)}
>
+ {attributes.length - currentDisplay} more...
</sl-button>
</td>
</tr>
{/if}
{#if editable}
<tr>
<td class="attr-action">
@ -334,9 +317,5 @@
padding: 2px;
}
}
.more-button {
width: 100%;
}
}
</style>