mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
allow multiple window updates (change window to windows)
This commit is contained in:
+4
-2
@@ -1852,8 +1852,10 @@ class Model {
|
||||
else if ("cmd" in update) {
|
||||
this.updateCmd(update.cmd);
|
||||
}
|
||||
if ("window" in update) {
|
||||
this.updateWindow(update.window, false);
|
||||
if ("windows" in update) {
|
||||
for (let i=0; i<update.windows.length; i++) {
|
||||
this.updateWindow(update.windows[i], false);
|
||||
}
|
||||
}
|
||||
if ("screenwindows" in update) {
|
||||
for (let i=0; i<update.screenwindows.length; i++) {
|
||||
|
||||
+1
-1
@@ -269,7 +269,7 @@ type PtyDataUpdateType = {
|
||||
type ModelUpdateType = {
|
||||
sessions? : SessionDataType[],
|
||||
activesessionid? : string,
|
||||
window? : WindowDataType,
|
||||
windows? : WindowDataType[],
|
||||
screenwindows? : ScreenWindowType[],
|
||||
line? : LineType,
|
||||
cmd? : CmdDataType,
|
||||
|
||||
Reference in New Issue
Block a user