snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
51
react/features/etherpad/actions.ts
Normal file
51
react/features/etherpad/actions.ts
Normal file
@@ -0,0 +1,51 @@
|
||||
import {
|
||||
SET_DOCUMENT_EDITING_STATUS,
|
||||
SET_DOCUMENT_URL,
|
||||
TOGGLE_DOCUMENT_EDITING
|
||||
} from './actionTypes';
|
||||
|
||||
/**
|
||||
* Dispatches an action to set whether document editing has started or stopped.
|
||||
*
|
||||
* @param {boolean} editing - Whether or not a document is currently being
|
||||
* edited.
|
||||
* @returns {{
|
||||
* type: SET_DOCUMENT_EDITING_STATUS,
|
||||
* editing: boolean
|
||||
* }}
|
||||
*/
|
||||
export function setDocumentEditingState(editing: boolean) {
|
||||
return {
|
||||
type: SET_DOCUMENT_EDITING_STATUS,
|
||||
editing
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Dispatches an action to set the shared document URL.
|
||||
*
|
||||
* @param {string} documentUrl - The shared document URL.
|
||||
* @returns {{
|
||||
* type: SET_DOCUMENT_URL,
|
||||
* documentUrl: string
|
||||
* }}
|
||||
*/
|
||||
export function setDocumentUrl(documentUrl?: string) {
|
||||
return {
|
||||
type: SET_DOCUMENT_URL,
|
||||
documentUrl
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Dispatches an action to show or hide Etherpad.
|
||||
*
|
||||
* @returns {{
|
||||
* type: TOGGLE_DOCUMENT_EDITING
|
||||
* }}
|
||||
*/
|
||||
export function toggleDocument() {
|
||||
return {
|
||||
type: TOGGLE_DOCUMENT_EDITING
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user