diff options
| author | bobzel <zzzman@gmail.com> | 2025-02-26 23:41:07 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2025-02-26 23:41:07 -0500 |
| commit | a162057114fd3d961e447d6c3051c1c8c0c6b46d (patch) | |
| tree | 77da42a32e8deaa12db1d1bd99559ae0b99ec784 /src/client/views/nodes/ImageBox.tsx | |
| parent | 2a71391a44eddcc438a5b8ae7d7c2d873f8adcfc (diff) | |
made ai. button draggable to regenerate images.
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
| -rw-r--r-- | src/client/views/nodes/ImageBox.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx index f3aea76a5..55474cb7e 100644 --- a/src/client/views/nodes/ImageBox.tsx +++ b/src/client/views/nodes/ImageBox.tsx @@ -625,11 +625,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() { onClick={action(async () => { this._regenerateLoading = true; if (this._fireflyRefStrength) { - DrawingFillHandler.drawingToImage(this.props.Document, this._fireflyRefStrength, this._regenInput || StrCast(this.Document.title), this.Document)?.then( - action(() => { - this._regenerateLoading = false; - }) - ); + DrawingFillHandler.drawingToImage(this.props.Document, this._fireflyRefStrength, this._regenInput || StrCast(this.Document.title), this.Document)?.then(action(() => (this._regenerateLoading = false))); } else { SmartDrawHandler.Instance.regenerate([this.Document], undefined, undefined, this._regenInput || StrCast(this.Document.title), true).then( action(newImgs => { |
