From f34686afeeaed881934e547302e42d6bf2402d7b Mon Sep 17 00:00:00 2001 From: virtuacoplenny Date: Tue, 10 Apr 2018 13:51:49 -0700 Subject: [PATCH] fix(recording): return true to close stop recording modal on cancel (#2776) --- .../LiveStream/StopLiveStreamDialog.web.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/react/features/recording/components/LiveStream/StopLiveStreamDialog.web.js b/react/features/recording/components/LiveStream/StopLiveStreamDialog.web.js index 4aaba87ec..f54dee4a3 100644 --- a/react/features/recording/components/LiveStream/StopLiveStreamDialog.web.js +++ b/react/features/recording/components/LiveStream/StopLiveStreamDialog.web.js @@ -44,6 +44,7 @@ class StopLiveStreamDialog extends Component { super(props); // Bind event handler so it is only bound once for every instance. + this._onCancel = this._onCancel.bind(this); this._onSubmit = this._onSubmit.bind(this); } @@ -57,7 +58,7 @@ class StopLiveStreamDialog extends Component { return ( @@ -66,6 +67,18 @@ class StopLiveStreamDialog extends Component { ); } + /** + * Callback invoked when stopping of live streaming is canceled. + * + * @private + * @returns {boolean} True to close the modal. + */ + _onCancel() { + this.props.onCancel(); + + return true; + } + /** * Callback invoked when stopping of live streaming is confirmed. *