Преглед изворни кода

fix(recording): return true to close stop recording modal on cancel (#2776)

master
virtuacoplenny пре 7 година
родитељ
комит
f34686afee
1 измењених фајлова са 14 додато и 1 уклоњено
  1. 14
    1
      react/features/recording/components/LiveStream/StopLiveStreamDialog.web.js

+ 14
- 1
react/features/recording/components/LiveStream/StopLiveStreamDialog.web.js Прегледај датотеку

44
         super(props);
44
         super(props);
45
 
45
 
46
         // Bind event handler so it is only bound once for every instance.
46
         // Bind event handler so it is only bound once for every instance.
47
+        this._onCancel = this._onCancel.bind(this);
47
         this._onSubmit = this._onSubmit.bind(this);
48
         this._onSubmit = this._onSubmit.bind(this);
48
     }
49
     }
49
 
50
 
57
         return (
58
         return (
58
             <Dialog
59
             <Dialog
59
                 okTitleKey = 'dialog.stopLiveStreaming'
60
                 okTitleKey = 'dialog.stopLiveStreaming'
60
-                onCancel = { this.props.onCancel }
61
+                onCancel = { this._onCancel }
61
                 onSubmit = { this._onSubmit }
62
                 onSubmit = { this._onSubmit }
62
                 titleKey = 'dialog.liveStreaming'
63
                 titleKey = 'dialog.liveStreaming'
63
                 width = 'small'>
64
                 width = 'small'>
66
         );
67
         );
67
     }
68
     }
68
 
69
 
70
+    /**
71
+     * Callback invoked when stopping of live streaming is canceled.
72
+     *
73
+     * @private
74
+     * @returns {boolean} True to close the modal.
75
+     */
76
+    _onCancel() {
77
+        this.props.onCancel();
78
+
79
+        return true;
80
+    }
81
+
69
     /**
82
     /**
70
      * Callback invoked when stopping of live streaming is confirmed.
83
      * Callback invoked when stopping of live streaming is confirmed.
71
      *
84
      *

Loading…
Откажи
Сачувај