Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrián García Diéguez authored and Adrián García Diéguez committed Feb 11, 2019
1 parent 23f89ad commit 1a4780e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/components/ChatDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
</div>
<div class="chat-dialog__right">
<div class="chat-dialog__options">
<md-button class="md-icon-button chat-dialog__video" v-on:click="videoCall = true">
<md-button
class="md-icon-button chat-dialog__video"
v-on:click="videoCall = true"
:disabled="showDialog.msg.length === 0">
<md-icon>video_call</md-icon>
</md-button>
<md-button class="md-icon-button chat-dialog__exit" v-on:click="closeChat()">
Expand Down Expand Up @@ -48,11 +51,11 @@ export default {
},
props: {
showDialog: Object,
videoCall: false
},
data: function() {
return {
privateMessage: ""
privateMessage: "",
videoCall: false
};
},
methods: {
Expand Down
5 changes: 4 additions & 1 deletion src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ export default new Router({
{
path: '/',
name: 'home',
component: Home
component: Home,
beforeEnter: (to, from, next) => {
store.state.room && store.state.username ? next('/chat') : next()
}
},
{
path: '/chat',
Expand Down

0 comments on commit 1a4780e

Please sign in to comment.