diff options
| author | bobzel <zzzman@gmail.com> | 2022-04-26 14:35:49 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-04-26 14:35:49 -0400 |
| commit | f4b6942fc1cad1f7e7ec7552e22f6c56bc158a77 (patch) | |
| tree | d2f2e243fc8ad7ae23de9346aac21c25256db871 /src/client/views/nodes/VideoBox.tsx | |
| parent | 690894b1b08b17205d4b14ad9150926a592e9ec4 (diff) | |
made creating a new thumbnail icon delete previous ones. fixed bug where documents would re-render if an earlier docuent in the collection list was added/removed.
Diffstat (limited to 'src/client/views/nodes/VideoBox.tsx')
| -rw-r--r-- | src/client/views/nodes/VideoBox.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx index c31d38b0d..e57cb1abe 100644 --- a/src/client/views/nodes/VideoBox.tsx +++ b/src/client/views/nodes/VideoBox.tsx @@ -53,14 +53,15 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp * @param returnedFilename the base filename to store the image on the server * @param nosuffix optionally suppress creating multiple resolution images */ - public static async convertDataUri(imageUri: string, returnedFilename: string, nosuffix = false) { + public static async convertDataUri(imageUri: string, returnedFilename: string, nosuffix = false, replaceRootFilename?: string) { try { const posting = Utils.prepend("/uploadURI"); const returnedUri = await rp.post(posting, { body: { uri: imageUri, name: returnedFilename, - nosuffix + nosuffix, + replaceRootFilename }, json: true, }); |
