mirror of
https://github.com/node-red/node-red
synced 2024-11-21 23:48:30 +00:00
Refresh page title after changing tab name
This commit is contained in:
parent
8af821d380
commit
af42664d73
@ -904,6 +904,13 @@ RED.workspaces = (function() {
|
||||
}
|
||||
},
|
||||
refresh: function() {
|
||||
var workspace = RED.nodes.workspace(RED.workspaces.active());
|
||||
if (workspace) {
|
||||
document.title = `${documentTitle} : ${workspace.label}`;
|
||||
} else {
|
||||
var subflow = RED.nodes.subflow(RED.workspaces.active());
|
||||
document.title = `${documentTitle} : ${subflow.name}`;
|
||||
}
|
||||
RED.nodes.eachWorkspace(function(ws) {
|
||||
workspace_tabs.renameTab(ws.id,ws.label);
|
||||
$("#red-ui-tab-"+(ws.id.replace(".","-"))).attr("flowname",ws.label)
|
||||
|
Loading…
Reference in New Issue
Block a user