Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

HangupButton.js 543B

1234567891011121314151617181920212223
  1. // @flow
  2. import { AbstractHangupButton } from '../base/toolbox';
  3. import type { AbstractButtonProps as Props } from '../base/toolbox';
  4. const { api } = window.alwaysOnTop;
  5. /**
  6. * Stateless hangup button for the Always-on-Top windows.
  7. */
  8. export default class HangupButton extends AbstractHangupButton<Props, *> {
  9. /**
  10. * Helper function to perform the actual hangup action.
  11. *
  12. * @override
  13. * @protected
  14. * @returns {void}
  15. */
  16. _doHangup() {
  17. api.executeCommand('hangup');
  18. window.close();
  19. }
  20. }