refactor: vuex re-org + modal-create-page

This commit is contained in:
NGPixel
2017-05-25 20:54:03 -04:00
parent 12132ad42e
commit f075c266ef
19 changed files with 201 additions and 116 deletions

View File

@@ -36,7 +36,7 @@
<script>
export default {
name: 'admin-users-create',
name: 'modal-create-user',
data () {
return {
email: '',
@@ -48,12 +48,12 @@
},
computed: {
isShown () {
return this.$store.state.adminUsersCreate.shown
return this.$store.state.modalCreateUser.shown
}
},
methods: {
cancel () {
this.$store.dispatch('adminUsersCreateClose')
this.$store.dispatch('modalCreateUser/close')
this.email = ''
this.provider = 'local'
},