Show message when live chat is disabled.

This commit is contained in:
Preston 2020-06-03 12:45:01 -04:00
parent 47593618cf
commit 1f85dbe046
2 changed files with 4 additions and 0 deletions

View File

@ -118,6 +118,9 @@ export default Vue.extend({
this.liveChat.on('end', (reason) => {
console.log('Live chat has ended')
console.log(reason)
this.hasError = true
this.showEnableChat = false
this.errorMessage = 'Chat is disabled or the Live Stream has ended.'
})
this.liveChat.on('error', (err) => {

View File

@ -17,6 +17,7 @@
class="errorIcon"
/>
<ft-button
v-if="showEnableChat"
label="Enable Live Chat"
class="enableLiveChat"
@click="enableLiveChat"