refactor: vue comp: page-loader + modal-create-page

This commit is contained in:
NGPixel
2017-05-26 00:12:38 -04:00
parent f075c266ef
commit c13c754c4c
10 changed files with 89 additions and 42 deletions

View File

@@ -0,0 +1,24 @@
<template lang="pug">
transition(name='page-loader')
.page-loader(v-if='isShown')
i
span {{ msg }}
</template>
<script>
export default {
name: 'page-loader',
props: ['text'],
data () {
return {}
},
computed: {
msg () { return this.$store.state.pageLoader.msg },
isShown () { return this.$store.state.pageLoader.shown }
},
mounted() {
this.$store.commit('pageLoader/msgChange', this.text)
}
}
}
</script>