aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentButtonBar.tsx
diff options
context:
space:
mode:
authoreleanor-park <eleanor_park@brown.edu>2025-01-05 23:47:18 -0500
committereleanor-park <eleanor_park@brown.edu>2025-01-05 23:47:18 -0500
commit1d62d867621b293c41ff8488ca5a3bd6010723d5 (patch)
tree0abc9d9ae2869775cfcc294838c93577fbc0fef9 /src/client/views/DocumentButtonBar.tsx
parent6e7cb570f9bad527cd4772bb5c715dd588fb77df (diff)
added AI image editor
Diffstat (limited to 'src/client/views/DocumentButtonBar.tsx')
-rw-r--r--src/client/views/DocumentButtonBar.tsx7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/client/views/DocumentButtonBar.tsx b/src/client/views/DocumentButtonBar.tsx
index b7033af3f..d722b28b5 100644
--- a/src/client/views/DocumentButtonBar.tsx
+++ b/src/client/views/DocumentButtonBar.tsx
@@ -319,12 +319,7 @@ export class DocumentButtonBar extends ObservableReactComponent<{ views: () => (
const targetDoc = this.view0?.Document;
return !targetDoc ? null : (
<Tooltip title={<div className="dash-ai-editor-button">Edit with AI</div>}>
- <div
- className="documentButtonBar-icon"
- style={{ color: 'white' }}
- onClick={() => {
- CalendarManager.Instance.open(this.view0, targetDoc);
- }}>
+ <div className="documentButtonBar-icon" style={{ color: 'white' }} onClick={undoable(() => this.view0?.toggleAIEditor(), 'toggle AI editor')}>
<FontAwesomeIcon className="documentdecorations-icon" icon="robot" />
</div>
</Tooltip>