autoconnect -> connectmode

This commit is contained in:
sawka 2022-08-21 12:26:10 -07:00
parent f7796169f6
commit db3f780275
3 changed files with 11 additions and 5 deletions

View File

@ -973,7 +973,7 @@ class RemoteModal extends React.Component<{}, {}> {
<th className="status-header">Status</th>
<th>Alias</th>
<th>User@Host</th>
<th>AutoConnect</th>
<th>Connect</th>
</tr>
</thead>
<tbody>
@ -992,10 +992,7 @@ class RemoteModal extends React.Component<{}, {}> {
{remote.remotecanonicalname}
</td>
<td>
<div className="field">
<input id="switchRoundedDefault" type="checkbox" name="switchRoundedDefault" className="switch is-rounded" checked={remote.autoconnect}/>
<label for="switchRoundedDefault"></label>
</div>
{remote.connectmode}
</td>
</tr>
</For>

View File

@ -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) {

View File

@ -77,6 +77,7 @@ type RemoteType = {
remotevars : Record<string, string>,
status : string,
defaultstate : RemoteStateType,
connectmode : string,
};
type RemoteStateType = {