aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authoreleanor-park <eleanor_park@brown.edu>2025-01-10 15:07:42 -0500
committereleanor-park <eleanor_park@brown.edu>2025-01-10 15:07:42 -0500
commitfd922d7898ed7a405ed47a7e48b85c582d787c07 (patch)
tree51110ea8358d8bd9898dce2aa1fcce83b2d1f584 /src/client/views/collections
parentc2312afe4ee969043ba3ce4cb9c275a48b0f1ee0 (diff)
working on merge conflicts
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index 112bfd178..e1144f21a 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -2266,7 +2266,6 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection
<div className="collectionfreeformview-aiView-options">
<input className="collectionfreeformview-aiView-prompt" placeholder="Prompt (Optional)" type="text" value={this._drawingFillInput} onChange={action(e => this._canInteract && (this._drawingFillInput = e.target.value))} />
<div className="collectionfreeformview-aiView-strength">
- Reference Strength
<Slider
className="collectionfreeformview-aiView-slider"
sx={{
@@ -2282,6 +2281,7 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection
onChange={action((e, val) => this._canInteract && (this._fireflyRefStrength = val as number))}
valueLabelDisplay="auto"
/>
+ Reference Strength
</div>
<Button
text="Send"
@@ -2295,9 +2295,10 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection
this.props.Document,
this._fireflyRefStrength,
this._drawingFillInput !== '' ? this._drawingFillInput : StrCast(this.props.Document.title) !== 'grouping' ? StrCast(this.props.Document.title) : ''
- );
- this._drawingFillInput = '';
- this._drawingFillLoading = false;
+ ).then(() => {
+ this._drawingFillInput = '';
+ this._drawingFillLoading = false;
+ });
}),
'create image'
)}