mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-23 02:51:26 +01:00
autoconnect -> connectmode
This commit is contained in:
parent
f7796169f6
commit
db3f780275
@ -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>
|
||||
|
@ -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) {
|
||||
|
@ -77,6 +77,7 @@ type RemoteType = {
|
||||
remotevars : Record<string, string>,
|
||||
status : string,
|
||||
defaultstate : RemoteStateType,
|
||||
connectmode : string,
|
||||
};
|
||||
|
||||
type RemoteStateType = {
|
||||
|
Loading…
Reference in New Issue
Block a user