Site > Chat > Add toggle

This commit is contained in:
brunosimon
2017-08-15 01:41:01 +02:00
parent 44e56cbb07
commit bf5af4e3c7
5 changed files with 34 additions and 40 deletions
+7 -1
View File
@@ -6,7 +6,8 @@ export default
{
return {
userName: '',
messageText: ''
messageText: '',
open: false
}
},
@@ -37,6 +38,11 @@ export default
methods:
{
onHeaderClick()
{
this.open = !this.open
},
onUserNameChange()
{
this.$store.commit('setPendingUser', { name: this.userName })