Fix nacitani spatnych dat do mapy u udalosti

This commit is contained in:
Michal Kváček
2024-02-29 08:19:24 +01:00
parent 7a45a0133e
commit f0a4c439dc
8 changed files with 59 additions and 56 deletions
+4 -3
View File
@@ -1,13 +1,13 @@
import {defineStore} from 'pinia'
import {ref} from "vue";
import {paginationLimit, paginationOffset} from "src/composables/pagination";
import {filters, paginationLimit, paginationOffset} from "src/composables/pagination";
export const useAppStore = defineStore('App', () => {
const pageTitle = ref(null);
const breadcrumbs = ref(null);
const appStatus = ref(200);
const resetAfterRouteChange = () => {
const resetBeforeRouteChange = () => {
pageTitle.value = null;
// appStatus.value = 200; // tohle dela problem pri renderu 404 na serveru
breadcrumbs.value = null;
@@ -15,6 +15,7 @@ export const useAppStore = defineStore('App', () => {
// reset strankovani po prechodu na strankach
paginationLimit.value = 10;
paginationOffset.value = 0;
filters.value = {};
};
const setPageTitle = (value) => {
@@ -28,6 +29,6 @@ export const useAppStore = defineStore('App', () => {
return {
pageTitle, breadcrumbs, appStatus,
resetAfterRouteChange, setPageTitle, setBreadcrumbs
resetBeforeRouteChange, setPageTitle, setBreadcrumbs
}
})