Skip to content

Commit 9dc3e98

Browse files
committed
remove router from store
1 parent 84a3a5d commit 9dc3e98

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

packages/modules/web_themes/koala/source/src/stores/index.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { store } from 'quasar/wrappers';
22
import { createPinia } from 'pinia';
3-
import { Router } from 'vue-router';
43

54
/*
65
* When adding new properties to stores, you should also
@@ -11,14 +10,9 @@ declare module 'pinia' {
1110
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
1211
export interface PiniaCustomProperties {
1312
// add your custom properties here, if any
14-
readonly router: Router | null;
1513
}
1614
}
1715

18-
function RouterPiniaPlugin() {
19-
return { router: null as Router | null };
20-
}
21-
2216
/*
2317
* If not building with SSR mode, you can
2418
* directly export the Store instantiation;
@@ -33,7 +27,6 @@ export default store((/* { ssrContext } */) => {
3327

3428
// You can add Pinia plugins here
3529
// pinia.use(SomePiniaPlugin)
36-
pinia.use(RouterPiniaPlugin);
3730

3831
return pinia;
3932
});

packages/modules/web_themes/koala/source/src/stores/mqtt-store.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ export const useMqttStore = defineStore('mqtt', () => {
121121
progress: true,
122122
closeBtn: 'Seite neu laden',
123123
onDismiss: () => {
124-
// not functional in Safari browser?
125-
// this.router.go(0);
126124
location.reload();
127125
},
128126
});

0 commit comments

Comments
 (0)