1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 06:32:34 +01:00
flox/client/app/components/Modal/Index.vue
Viktor Geringer 3a2f6e2ecd Open modal on current episode (#54)
* get next episode

* show current season and scroll to next episode

* update production files

* typos

* refactor for review
2017-02-21 21:20:42 +01:00

31 lines
614 B
Vue

<template>
<div class="all-modals">
<transition mode="out-in" name="fade">
<season v-if="modalType == 'season'"></season>
</transition>
<span class="overlay" v-if="overlay" @click="CLOSE_MODAL()"></span>
</div>
</template>
<script>
import Season from './Season.vue';
import { mapState, mapMutations } from 'vuex';
export default {
computed: {
...mapState({
overlay: state => state.overlay,
modalType: state => state.modalType
})
},
methods: {
...mapMutations([ 'CLOSE_MODAL' ])
},
components: {
Season
}
}
</script>