mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
fix setCmd mobx.action call
This commit is contained in:
+3
-3
@@ -68,7 +68,7 @@ class Cmd {
|
||||
setCmd(cmd : CmdDataType) {
|
||||
mobx.action(() => {
|
||||
this.data.set(cmd);
|
||||
});
|
||||
})();
|
||||
}
|
||||
|
||||
getStatus() : string {
|
||||
@@ -980,7 +980,7 @@ class Model {
|
||||
if (lineMsg.line != null) {
|
||||
this.addLineCmd(lineMsg.line, lineMsg.cmd, interactive);
|
||||
}
|
||||
if (lineMsg.line == null && lineMsg.cmd != null) {
|
||||
else if (lineMsg.line == null && lineMsg.cmd != null) {
|
||||
this.updateCmd(lineMsg.cmd);
|
||||
}
|
||||
}
|
||||
@@ -996,7 +996,7 @@ class Model {
|
||||
let cmdline : CmdLineUpdateType = update.cmdline;
|
||||
this.inputModel.updateCmdLine(cmdline);
|
||||
}
|
||||
// console.log("run-update>", interactive, update);
|
||||
// console.log("run-update>", Date.now(), interactive, update);
|
||||
}
|
||||
|
||||
getActiveSession() : Session {
|
||||
|
||||
Reference in New Issue
Block a user