feat: [FC-0044] Course unit - Copy/paste functionality (#884)
Implement copy/paste. Co-authored-by: monteri <36768631+monteri@users.noreply.github.com> Co-authored-by: ihor-romaniuk <ihor.romaniuk@raccoongang.com>
This commit is contained in:
@@ -434,20 +434,6 @@ export async function setVideoSharingOption(courseId, videoSharingOption) {
|
||||
return data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Copy block to clipboard
|
||||
* @param {string} usageKey
|
||||
* @returns {Promise<Object>}
|
||||
*/
|
||||
export async function copyBlockToClipboard(usageKey) {
|
||||
const { data } = await getAuthenticatedHttpClient()
|
||||
.post(getClipboardUrl(), {
|
||||
usage_key: usageKey,
|
||||
});
|
||||
|
||||
return camelCaseObject(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Paste block to clipboard
|
||||
* @param {string} parentLocator
|
||||
|
||||
Reference in New Issue
Block a user