2021-06-03 16:23:18 +00:00
|
|
|
import { openDialog } from '../base/dialog';
|
|
|
|
|
2021-06-11 07:15:20 +00:00
|
|
|
import { PARTICIPANTS_PANE_CLOSE, PARTICIPANTS_PANE_OPEN } from './actionTypes';
|
2021-06-04 15:07:18 +00:00
|
|
|
import { ContextMenuLobbyParticipantReject, ContextMenuMeetingParticipantDetails } from './components/native';
|
2021-06-03 16:23:18 +00:00
|
|
|
|
2021-06-11 07:15:20 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Action to open the participants pane.
|
|
|
|
*
|
|
|
|
* @returns {Object}
|
|
|
|
*/
|
|
|
|
export function open() {
|
|
|
|
console.log(2);
|
|
|
|
|
|
|
|
return {
|
|
|
|
type: PARTICIPANTS_PANE_OPEN
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Action to close the participants pane.
|
|
|
|
*
|
|
|
|
* @returns {Object}
|
|
|
|
*/
|
|
|
|
export function close() {
|
|
|
|
return {
|
|
|
|
type: PARTICIPANTS_PANE_CLOSE
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2021-06-03 16:23:18 +00:00
|
|
|
/**
|
|
|
|
* Displays the context menu for the selected lobby participant.
|
|
|
|
*
|
2021-06-04 15:07:18 +00:00
|
|
|
* @param {Object} participant - The selected lobby participant.
|
2021-06-03 16:23:18 +00:00
|
|
|
* @returns {Function}
|
|
|
|
*/
|
|
|
|
export function showContextMenuReject(participant) {
|
2021-06-04 15:07:18 +00:00
|
|
|
return openDialog(ContextMenuLobbyParticipantReject, { participant });
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Displays the context menu for the selected meeting participant.
|
|
|
|
*
|
|
|
|
* @param {Object} participant - The selected meeting participant.
|
|
|
|
* @returns {Function}
|
|
|
|
*/
|
|
|
|
export function showContextMenuDetails(participant) {
|
|
|
|
return openDialog(ContextMenuMeetingParticipantDetails, { participant });
|
2021-06-03 16:23:18 +00:00
|
|
|
}
|