diff options
| author | alyssaf16 <alyssa_feinberg@brown.edu> | 2024-10-07 22:48:54 -0400 |
|---|---|---|
| committer | alyssaf16 <alyssa_feinberg@brown.edu> | 2024-10-07 22:48:54 -0400 |
| commit | 66950dca6e7add542aba3c6caa8115ce7f1ecd73 (patch) | |
| tree | d490ba81e776e86ef026d7ceb3d52caa2610271f /src/client/views/nodes/AudioBox.tsx | |
| parent | fbff73033b6c0f9b1214e9013c155ff085e7a737 (diff) | |
comments and clean up
Diffstat (limited to 'src/client/views/nodes/AudioBox.tsx')
| -rw-r--r-- | src/client/views/nodes/AudioBox.tsx | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/client/views/nodes/AudioBox.tsx b/src/client/views/nodes/AudioBox.tsx index 2c0a102f5..25e76e2a6 100644 --- a/src/client/views/nodes/AudioBox.tsx +++ b/src/client/views/nodes/AudioBox.tsx @@ -299,32 +299,15 @@ export class AudioBox extends ViewBoxAnnotatableComponent<FieldViewProps>() { this.Document[DocData].phoneticTranscription = response.data['transcription']; }; - youtubeUpload = async () => { - console.log('Here'); - const audio = { - file: 'Cd2ch4XV84s&t=373s', - }; - const response = await axios.post('http://localhost:105/youtube/', audio, { - headers: { - 'Content-Type': 'application/json', - }, - }); - }; - // context menu specificContextMenu = (): void => { const funcs: ContextMenuProps[] = []; funcs.push({ - description: 'Youtube', - event: this.youtubeUpload, // prettier-ignore - icon: 'expand-arrows-alt', - }); - funcs.push({ description: (this.layoutDoc.hideAnchors ? "Don't hide" : 'Hide') + ' anchors', event: () => { this.layoutDoc.hideAnchors = !this.layoutDoc.hideAnchors; }, // prettier-ignore icon: 'expand-arrows-alt', - }); + }); // funcs.push({ description: (this.layoutDoc.dontAutoFollowLinks ? '' : "Don't") + ' follow links when encountered', event: () => { this.layoutDoc.dontAutoFollowLinks = !this.layoutDoc.dontAutoFollowLinks}, // prettier-ignore |
