🎨 Site > Store > Separate into modules

This commit is contained in:
brunosimon
2017-08-14 22:43:50 +02:00
parent 0eb639a9db
commit 2b0dec5d0a
17 changed files with 178 additions and 184 deletions
+6 -3
View File
@@ -8,12 +8,12 @@ export default
{
project()
{
return this.$store.state.project
return this.$store.state.projects.current
},
pendingUser()
{
return this.$store.state.pendingUser
return this.$store.state.chat.pendingUser
}
},
@@ -101,7 +101,10 @@ export default
onPendingUser(value)
{
this.chatSocket.emit('update_user', value)
if(value)
{
this.chatSocket.emit('update_user', value)
}
}
}
}