add coach getters

This commit is contained in:
Andreas Zweili 2021-06-27 18:15:52 +02:00
parent 9d969994dd
commit 3b73e59587
2 changed files with 10 additions and 1 deletions

View File

@ -1,9 +1,11 @@
import { createApp } from 'vue';
import router from './router';
import store from './store';
import App from './App';
const app = createApp(App);
app.use(router);
app.use(store);
app.mount('#app');

View File

@ -1 +1,8 @@
export default {};
export default {
coaches(state) {
return state.coaches;
},
hasCoaches(state) {
return state.coaches && state.coaches.length > 0;
}
};