LiveAtlas/src/store/getters.ts

12 lines
311 B
TypeScript
Raw Normal View History

2020-11-23 16:16:26 +00:00
import {GetterTree} from "vuex";
import {State} from "@/store/state";
export type Getters = {
playerMarkersEnabled(state: State): boolean;
2020-11-23 16:16:26 +00:00
}
export const getters: GetterTree<State, State> & Getters = {
playerMarkersEnabled(state: State): boolean {
return state.components.playerMarkers !== undefined;
}
2020-11-23 16:16:26 +00:00
}