2020-11-23 16:16:26 +00:00
|
|
|
import {GetterTree} from "vuex";
|
|
|
|
import {State} from "@/store/state";
|
|
|
|
|
|
|
|
export type Getters = {
|
2020-11-24 01:56:03 +00:00
|
|
|
playerMarkersEnabled(state: State): boolean;
|
2020-12-01 23:20:38 +00:00
|
|
|
coordinatesControlEnabled(state: State): boolean;
|
|
|
|
clockControlEnabled(state: State): boolean;
|
2020-11-23 16:16:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const getters: GetterTree<State, State> & Getters = {
|
2020-11-24 01:56:03 +00:00
|
|
|
playerMarkersEnabled(state: State): boolean {
|
|
|
|
return state.components.playerMarkers !== undefined;
|
2020-12-01 23:20:38 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
coordinatesControlEnabled(state: State): boolean {
|
|
|
|
return state.components.coordinatesControl !== undefined;
|
|
|
|
},
|
|
|
|
|
|
|
|
clockControlEnabled(state: State): boolean {
|
|
|
|
return state.components.clockControl !== undefined;
|
2020-11-24 01:56:03 +00:00
|
|
|
}
|
2020-11-23 16:16:26 +00:00
|
|
|
}
|