Dodanie możliwości zmiany serwerów gry

This commit is contained in:
2021-09-22 11:26:30 +02:00
parent 0f04e1406f
commit 712dc64693
8 changed files with 104 additions and 42 deletions
+1 -13
View File
@@ -11,14 +11,6 @@
@resetFilters="resetFilters"
/>
<!-- <action-button>PL1</action-button> -->
<!-- <select-box
style="margin-left: 0.5em"
:itemList="regions"
@selected="selectRegion"
></select-box> -->
<div class="paypal-link">
<a target="_blank" href="https://paypal.me/spythere">
<img
@@ -57,7 +49,7 @@ import { StoreData } from "@/scripts/interfaces/StoreData";
import { DataStatus } from "@/scripts/enums/DataStatus";
import { computed, ComputedRef, defineComponent, reactive } from "vue";
import { useStore } from "@/store";
import { ACTIONS, GETTERS, MUTATIONS } from "@/constants/storeConstants";
import { GETTERS } from "@/constants/storeConstants";
export default defineComponent({
components: {
@@ -168,10 +160,6 @@ export default defineComponent({
setFocusedStation(name: string) {
this.focusedStationName = this.focusedStationName == name ? "" : name;
},
selectRegion(region: { id: string; value: string }) {
this.$store.commit(MUTATIONS.SET_REGION, region.id);
this.$store.dispatch(ACTIONS.fetchOnlineData);
},
},
});
</script>