Fix nacitani spatnych dat do mapy u udalosti
This commit is contained in:
+4
-3
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user