Pagination prepsano do inteligentnejsi composable

This commit is contained in:
Michal Kváček
2024-03-09 23:16:37 +01:00
parent 883b4fa97f
commit 5cff3580b0
16 changed files with 56 additions and 45 deletions
-6
View File
@@ -1,6 +1,5 @@
import {defineStore} from 'pinia'
import {ref} from "vue";
import {filters, paginationLimit, paginationOffset} from "src/composables/pagination";
export const useAppStore = defineStore('App', () => {
const pageTitle = ref(null);
@@ -11,11 +10,6 @@ export const useAppStore = defineStore('App', () => {
pageTitle.value = null;
// appStatus.value = 200; // tohle dela problem pri renderu 404 na serveru
breadcrumbs.value = null;
// reset strankovani po prechodu na strankach
paginationLimit.value = 10;
paginationOffset.value = 0;
filters.value = {};
};
const setPageTitle = (value) => {