Show message when live chat is disabled.
This commit is contained in:
parent
47593618cf
commit
1f85dbe046
|
@ -118,6 +118,9 @@ export default Vue.extend({
|
||||||
this.liveChat.on('end', (reason) => {
|
this.liveChat.on('end', (reason) => {
|
||||||
console.log('Live chat has ended')
|
console.log('Live chat has ended')
|
||||||
console.log(reason)
|
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) => {
|
this.liveChat.on('error', (err) => {
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
class="errorIcon"
|
class="errorIcon"
|
||||||
/>
|
/>
|
||||||
<ft-button
|
<ft-button
|
||||||
|
v-if="showEnableChat"
|
||||||
label="Enable Live Chat"
|
label="Enable Live Chat"
|
||||||
class="enableLiveChat"
|
class="enableLiveChat"
|
||||||
@click="enableLiveChat"
|
@click="enableLiveChat"
|
||||||
|
|
Loading…
Reference in New Issue