aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ImageBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-07-16 13:03:12 -0400
committerbobzel <zzzman@gmail.com>2025-07-16 13:03:12 -0400
commit3b0fca96e8350c4d103833a0cee6dcdc5e781d5c (patch)
treeeed19ff01c263f9bf99c042efb00f19d16f7b9b3 /src/client/views/nodes/ImageBox.tsx
parenta36a0aec384958778864f7842627f21a9fb31bf8 (diff)
fixed placement of Docs on views that are modified as the result of the AI componentUI view being display
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
-rw-r--r--src/client/views/nodes/ImageBox.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx
index 5d5f9d00a..4886f0e96 100644
--- a/src/client/views/nodes/ImageBox.tsx
+++ b/src/client/views/nodes/ImageBox.tsx
@@ -100,7 +100,6 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
// variables for AI Image Editor
@observable private _regenInput = '';
- @observable private _canInteract = true;
@observable private _regenerateLoading = false;
// Add these observable properties to the ImageBox class
@@ -903,7 +902,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
aria-label="Edit instructions input"
type="text"
value={this._regenInput || StrCast(this.Document.title)}
- onChange={action(e => this._canInteract && (this._regenInput = e.target.value))}
+ onChange={action(e => (this._regenInput = e.target.value))}
placeholder={this._regenInput || StrCast(this.Document.title)}
/>
<div className="imageBox-aiView-regenerate-createBtn">
@@ -937,7 +936,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
number={this._fireflyRefStrength}
size={Size.XXSMALL}
setNumber={undoable(
- action(val => this._canInteract && (this._fireflyRefStrength = val as number)),
+ action(val => (this._fireflyRefStrength = val as number)),
`${this.Document.title} button set from list`
)}
fillWidth