From 654ff3b0b81ddfa979fcf59e3494c24ef9e2fa4a Mon Sep 17 00:00:00 2001 From: sawka Date: Tue, 21 Feb 2023 22:42:44 -0800 Subject: [PATCH] stub out shared sessions --- src/main.tsx | 2 +- src/model.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.tsx b/src/main.tsx index 01c486cca..00bf14c77 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -3021,7 +3021,7 @@ class MainSideBar extends React.Component<{}, {}> { } handleNewSharedSession() { - console.log("create shared session"); + GlobalCommandRunner.openSharedSession(); } clickRemotes() { diff --git a/src/model.ts b/src/model.ts index 0b3dc1643..892d1ca2f 100644 --- a/src/model.ts +++ b/src/model.ts @@ -2684,6 +2684,10 @@ class CommandRunner { deleteBookmark(bookmarkId : string) : void { GlobalModel.submitCommand("bookmark", "delete", [bookmarkId], {"nohist": "1"}, true); } + + openSharedSession() : void { + GlobalModel.submitCommand("session", "openshared", null, {"nohist": "1"}, true); + } }; function cmdPacketString(pk : FeCmdPacketType) : string {