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.

HangupButton.js 764B

12345678910111213141516171819202122232425262728
  1. // @flow
  2. // We need to reference these files directly to avoid loading things that are not available
  3. // in this environment (e.g. JitsiMeetJS or interfaceConfig)
  4. import type { Props } from '../base/toolbox/components/AbstractButton';
  5. import AbstractHangupButton from '../base/toolbox/components/AbstractHangupButton';
  6. const { api } = window.alwaysOnTop;
  7. /**
  8. * Stateless hangup button for the Always-on-Top windows.
  9. */
  10. export default class HangupButton extends AbstractHangupButton<Props, *> {
  11. accessibilityLabel = 'Hangup';
  12. /**
  13. * Helper function to perform the actual hangup action.
  14. *
  15. * @override
  16. * @protected
  17. * @returns {void}
  18. */
  19. _doHangup() {
  20. api.executeCommand('hangup');
  21. window.close();
  22. }
  23. }