mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 03:06:00 +00:00
fixed pager component #388
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<div class="wrapper">
|
||||
<InlineButton
|
||||
on:click={() => {
|
||||
skip -= limit;
|
||||
skip = parseInt(skip) - parseInt(limit);
|
||||
if (skip < 0) skip = 0;
|
||||
dispatch('load');
|
||||
}}
|
||||
@@ -35,7 +35,7 @@
|
||||
<TextField type="number" bind:value={limit} on:blur={() => dispatch('load')} on:keydown={handleKeyDown} />
|
||||
<InlineButton
|
||||
on:click={() => {
|
||||
skip += limit;
|
||||
skip = parseInt(skip) + parseInt(limit);
|
||||
dispatch('load');
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user