Pagination prepsano do inteligentnejsi composable
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user