mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-08 00:21:23 +01:00
Fix tab name reload for pinned tabs (#1476)
This commit is contained in:
parent
1d74e56c26
commit
677ecc3ef8
@ -109,21 +109,27 @@ async function reinitWave() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function reloadAllWorkspaceTabs(ws: Workspace) {
|
function reloadAllWorkspaceTabs(ws: Workspace) {
|
||||||
if (ws == null || ws.tabids == null) {
|
if (ws == null || (!ws.tabids?.length && !ws.pinnedtabids?.length)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ws.tabids.forEach((tabid) => {
|
ws?.tabids.forEach((tabid) => {
|
||||||
|
WOS.reloadWaveObject<Tab>(WOS.makeORef("tab", tabid));
|
||||||
|
});
|
||||||
|
ws?.pinnedtabids?.forEach((tabid) => {
|
||||||
WOS.reloadWaveObject<Tab>(WOS.makeORef("tab", tabid));
|
WOS.reloadWaveObject<Tab>(WOS.makeORef("tab", tabid));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadAllWorkspaceTabs(ws: Workspace) {
|
function loadAllWorkspaceTabs(ws: Workspace) {
|
||||||
if (ws == null || ws.tabids == null) {
|
if (ws == null || (!ws.tabids?.length && !ws.pinnedtabids?.length)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ws.tabids.forEach((tabid) => {
|
ws.tabids.forEach((tabid) => {
|
||||||
WOS.getObjectValue<Tab>(WOS.makeORef("tab", tabid));
|
WOS.getObjectValue<Tab>(WOS.makeORef("tab", tabid));
|
||||||
});
|
});
|
||||||
|
ws.pinnedtabids.forEach((tabid) => {
|
||||||
|
WOS.getObjectValue<Tab>(WOS.makeORef("tab", tabid));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async function initWave(initOpts: WaveInitOpts) {
|
async function initWave(initOpts: WaveInitOpts) {
|
||||||
|
Loading…
Reference in New Issue
Block a user