Connect With Non-Terminal Widgets (#304)

- Adds connection buttons for previews
- Makes it possible for graphs and previews to connect on backend
(without a terminal open to connection)
- Changes the wsh install message
This commit is contained in:
Sylvie Crowe
2024-09-02 12:34:49 -07:00
committed by GitHub
parent 63cfe1d279
commit 226bc4ee6f
7 changed files with 99 additions and 10 deletions
+2
View File
@@ -52,6 +52,7 @@ export class PreviewModel implements ViewModel {
previewTextRef: React.RefObject<HTMLDivElement>;
editMode: jotai.Atom<boolean>;
canPreview: jotai.PrimitiveAtom<boolean>;
manageConnection: jotai.Atom<boolean>;
fileName: jotai.Atom<string>;
connection: jotai.Atom<string>;
@@ -81,6 +82,7 @@ export class PreviewModel implements ViewModel {
this.ceReadOnly = jotai.atom(true);
this.canPreview = jotai.atom(false);
this.openFileModal = jotai.atom(false);
this.manageConnection = jotai.atom(true);
this.blockAtom = WOS.getWaveObjectAtom<Block>(`block:${blockId}`);
this.viewIcon = jotai.atom((get) => {
let blockData = get(this.blockAtom);