mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-25 14:32:09 +02:00
Fix footer display
This commit is contained in:
parent
1c5f12d691
commit
04e513ab0c
@ -134,6 +134,8 @@
|
||||
this.showStream = false
|
||||
|
||||
this.$parent.$emit('stopStreaming')
|
||||
|
||||
console.log('stream disabled')
|
||||
},
|
||||
|
||||
async onStreamerInit (promise) {
|
||||
@ -175,15 +177,21 @@
|
||||
|
||||
if( this.errorName ) {
|
||||
this.canStream = false
|
||||
console.log(this.errorText)
|
||||
this.$parent.$emit('cannotStream')
|
||||
|
||||
console.log('fail to stream : ' + this.errorText)
|
||||
}
|
||||
|
||||
if( !this.errorName && !this.showStream ) {
|
||||
this.camera = 'off'
|
||||
|
||||
console.log('stream stopped')
|
||||
}
|
||||
|
||||
if( this.canStream && this.showStream) {
|
||||
this.$parent.$emit('startStreaming')
|
||||
|
||||
console.log('stream started')
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -178,6 +178,11 @@
|
||||
this.showFooter = true
|
||||
});
|
||||
|
||||
this.$on('cannotStream', function() {
|
||||
|
||||
this.showFooter = true
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
components: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user