12 lines
311 B
TypeScript
12 lines
311 B
TypeScript
import {GetterTree} from "vuex";
|
|
import {State} from "@/store/state";
|
|
|
|
export type Getters = {
|
|
playerMarkersEnabled(state: State): boolean;
|
|
}
|
|
|
|
export const getters: GetterTree<State, State> & Getters = {
|
|
playerMarkersEnabled(state: State): boolean {
|
|
return state.components.playerMarkers !== undefined;
|
|
}
|
|
} |