|
|
@@ -842,7 +842,7 @@ async function openLog(cluster, node, recipe) {
|
|
|
extraCls: "logwin",
|
|
|
removeOnClose: true,
|
|
|
onClosed: () => {
|
|
|
- const w = [...logWins.entries()].find(([, x]) => x.node === node && x.cluster === cluster && x.win === win);
|
|
|
+ const w = [...logWins.entries()].find(([, x]) => x.node === node && x.cluster === cluster && x.win === win.win);
|
|
|
if (w) detachLog(w[0]);
|
|
|
},
|
|
|
});
|
|
|
@@ -866,7 +866,7 @@ async function openLog(cluster, node, recipe) {
|
|
|
if (n.containers.length) sel.value = recipe;
|
|
|
sel.onchange = async () => {
|
|
|
if (!sel.value) return;
|
|
|
- const cur = [...logWins.entries()].find(([, x]) => x.win === win);
|
|
|
+ const cur = [...logWins.entries()].find(([, x]) => x.win === win.win);
|
|
|
if (cur) detachLog(cur[0], false); // drop the old stream, keep this window
|
|
|
await attachLog(w, sel.value);
|
|
|
};
|