poprawki do popupów

This commit is contained in:
2024-03-23 16:47:57 +01:00
parent 6b6b837dde
commit 1ec75bda70
9 changed files with 104 additions and 60 deletions
+4 -1
View File
@@ -1,10 +1,12 @@
import { defineComponent } from 'vue';
import { useMainStore } from '../store/mainStore';
import { usePopupStore } from '../store/popupStore';
export default defineComponent({
data() {
return {
store: useMainStore()
store: useMainStore(),
popupStore: usePopupStore()
};
},
@@ -23,6 +25,7 @@ export default defineComponent({
closeModal() {
this.store.chosenModalTrainId = undefined;
this.popupStore.currentPopupComponent = null;
setTimeout(() => {
(this.store.modalLastClickedTarget as any)?.focus();