aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/imageEditor/ImageEditorButtons.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-02-23 16:34:40 -0500
committerbobzel <zzzman@gmail.com>2025-02-23 16:34:40 -0500
commit30ec70722678eba318fb7521a8b2bd642328bf54 (patch)
treee4d5fb25224db75a341aa72350802634529074a0 /src/client/views/nodes/imageEditor/ImageEditorButtons.tsx
parent7b6755e33a8e14e96cd0cd2df2dc26b88a8171c6 (diff)
added option+maximize to open in doc editor view (currently only for images). fixed imageEditor to generate edits the first time through.
Diffstat (limited to 'src/client/views/nodes/imageEditor/ImageEditorButtons.tsx')
-rw-r--r--src/client/views/nodes/imageEditor/ImageEditorButtons.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/imageEditor/ImageEditorButtons.tsx b/src/client/views/nodes/imageEditor/ImageEditorButtons.tsx
index 985dc914f..3eaa251f2 100644
--- a/src/client/views/nodes/imageEditor/ImageEditorButtons.tsx
+++ b/src/client/views/nodes/imageEditor/ImageEditorButtons.tsx
@@ -53,10 +53,10 @@ export function ApplyFuncButtons({ loading, onClick: getEdit, onReset, btnText }
export function ImageToolButton(tool: ImageEditTool, isActive: boolean, selectTool: (type: ImageToolType) => void) {
return (
- <div key={tool.name} className="imageEditorButtonContainer">
+ <div key={tool.type} className="imageEditorButtonContainer">
<Button
style={{ width: '100%' }}
- text={tool.name}
+ text={tool.type}
type={Type.TERT}
color={isActive ? SettingsManager.userVariantColor : bgColor}
icon={<FontAwesomeIcon icon={tool.icon} />}