You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AbstractBlockAudioVideoDialog.js 846B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // @flow
  2. import { Component } from 'react';
  3. type Props = {
  4. /**
  5. * The Redux dispatch function.
  6. */
  7. dispatch: Function,
  8. /**
  9. * Function to translate i18n labels.
  10. */
  11. t: Function
  12. };
  13. /**
  14. * Abstract dialog to confirm blocking mic and camera for all participants.
  15. */
  16. export default class AbstractBlockAudioVideoDialog
  17. extends Component<Props> {
  18. /**
  19. * Initializes a new {@code AbstractBlockAudioVideoDialog} instance.
  20. *
  21. * @inheritdoc
  22. */
  23. constructor(props: Props) {
  24. super(props);
  25. this._onSubmit = this._onSubmit.bind(this);
  26. }
  27. _onSubmit: () => boolean;
  28. /**
  29. * Callback for the confirm button.
  30. *
  31. * @private
  32. * @returns {boolean} - True (to note that the modal should be closed).
  33. */
  34. _onSubmit() {
  35. return true;
  36. }
  37. }