From 04e513ab0ceac04bdbc5cf31f5ca644712b3aa90 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Fri, 8 May 2020 11:37:49 +0200 Subject: [PATCH] Fix footer display --- resources/js/components/QuickUploader.vue | 10 +++++++++- resources/js/views/Accounts.vue | 5 +++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/resources/js/components/QuickUploader.vue b/resources/js/components/QuickUploader.vue index bd5b5ab0..291026da 100644 --- a/resources/js/components/QuickUploader.vue +++ b/resources/js/components/QuickUploader.vue @@ -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') } }, diff --git a/resources/js/views/Accounts.vue b/resources/js/views/Accounts.vue index f490355c..a5cf71d3 100644 --- a/resources/js/views/Accounts.vue +++ b/resources/js/views/Accounts.vue @@ -178,6 +178,11 @@ this.showFooter = true }); + this.$on('cannotStream', function() { + + this.showFooter = true + }); + }, components: {