diff --git a/src/main.tsx b/src/main.tsx
index f4e13721..96fea3de 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -973,7 +973,7 @@ class RemoteModal extends React.Component<{}, {}> {
Status |
Alias |
User@Host |
- AutoConnect |
+ Connect |
@@ -992,10 +992,7 @@ class RemoteModal extends React.Component<{}, {}> {
{remote.remotecanonicalname}
-
-
-
-
+ {remote.connectmode}
|
diff --git a/src/model.ts b/src/model.ts
index a6f7f285..f9890d36 100644
--- a/src/model.ts
+++ b/src/model.ts
@@ -67,7 +67,11 @@ class Cmd {
setCmd(cmd : CmdDataType) {
mobx.action(() => {
+ let origData = this.data.get();
this.data.set(cmd);
+ if (origData != null && cmd != null && origData.status != cmd.status) {
+ GlobalModel.cmdStatusUpdate(this.sessionId, this.cmdId, origData.status, cmd.status);
+ }
})();
}
@@ -827,6 +831,10 @@ class Model {
};
}
+ cmdStatusUpdate(sessionId : string, cmdId : string, origStatus : string, newStatus : string) {
+ console.log("cmd status", sessionId, cmdId, origStatus, "=>", newStatus);
+ }
+
onMetaArrowUp() : void {
let focus = this.getFocusedLine();
if (focus == null) {
diff --git a/src/types.ts b/src/types.ts
index 30d276fb..a97bf9ba 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -77,6 +77,7 @@ type RemoteType = {
remotevars : Record,
status : string,
defaultstate : RemoteStateType,
+ connectmode : string,
};
type RemoteStateType = {