gamebrary/src/components/GlobalModals.vue

37 lines
787 B
Vue
Raw Normal View History

2021-02-01 21:16:03 +00:00
<template lang="html">
<div>
<create-board-modal />
<game-modal />
2021-02-03 04:57:55 +00:00
<auth-modal />
2021-02-09 18:54:52 +00:00
<template v-if="user">
<keyboard-shortcuts-modal />
<session-expired-modal />
</template>
2021-02-01 21:16:03 +00:00
</div>
</template>
<script>
import { mapState } from 'vuex';
import SessionExpiredModal from '@/components/SessionExpiredModal';
import GameModal from '@/components/Game/GameModal';
import CreateBoardModal from '@/components/Board/CreateBoardModal';
2021-02-03 04:57:55 +00:00
import AuthModal from '@/components/AuthModal';
2021-02-09 18:54:52 +00:00
import KeyboardShortcutsModal from '@/components/KeyboardShortcutsModal';
2021-02-01 21:16:03 +00:00
export default {
components: {
SessionExpiredModal,
2021-02-03 04:57:55 +00:00
AuthModal,
2021-02-09 18:54:52 +00:00
KeyboardShortcutsModal,
2021-02-01 21:16:03 +00:00
CreateBoardModal,
GameModal,
},
computed: {
...mapState(['user']),
},
};
</script>