mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: Torsten's review
This commit is contained in:
1 parent
5bb780bf9a
commit
7485c9311f
1 file changed
-11
@@ -1,23 +1,12 @@
|
||||
<script lang="ts">
|
||||
import { Empty } from '$lib/components';
|
||||
import { CARD_LIMIT } from '$lib/constants';
|
||||
import { prefs } from '$lib/stores/user';
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
export let offset = 0;
|
||||
export let total = 0;
|
||||
export let event: string = null;
|
||||
|
||||
let limit = CARD_LIMIT;
|
||||
|
||||
onMount(async () => {
|
||||
await prefs.load();
|
||||
$prefs?.pageLimit && (limit = $prefs.pageLimit);
|
||||
});
|
||||
|
||||
prefs.subscribe((prefs) => {
|
||||
prefs?.pageLimit && (limit = prefs.pageLimit);
|
||||
});
|
||||
</script>
|
||||
|
||||
<ul
|
||||
|
||||
Reference in new issue
Block a user