mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
Merge pull request #1041 from rommapp/romm-1020
[ROMM-1020] Fix firmware pagination on mount
This commit is contained in:
@@ -9,7 +9,7 @@ import type { Events } from "@/types/emitter";
|
||||
import { formatBytes } from "@/utils";
|
||||
import type { Emitter } from "mitt";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { inject, ref, watch } from "vue";
|
||||
import { inject, ref, watch, onMounted } from "vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
// Props
|
||||
@@ -60,6 +60,10 @@ function updateDataTablePages() {
|
||||
watch(itemsPerPage, async () => {
|
||||
updateDataTablePages();
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
updateDataTablePages();
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user