remove (unused) pagination
parent
1d62f952bf
commit
aaa511fc3f
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue