1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Rename Workspaces to Sheets (ui only)

This commit is contained in:
Nicholas O'Leary 2013-10-30 19:58:42 +00:00
parent 60652d2095
commit b71645f8ea
2 changed files with 3 additions and 3 deletions

View File

@ -244,7 +244,7 @@ RED.nodes = function() {
} }
} }
if (defaultWorkspace == null) { if (defaultWorkspace == null) {
defaultWorkspace = { type:"workspace", id:getID(), label:"Workspace 1" }; defaultWorkspace = { type:"workspace", id:getID(), label:"Sheet 1" };
addWorkspace(defaultWorkspace); addWorkspace(defaultWorkspace);
RED.view.addWorkspace(defaultWorkspace); RED.view.addWorkspace(defaultWorkspace);
} }

View File

@ -107,9 +107,9 @@ RED.view = function() {
var tabId = RED.nodes.id(); var tabId = RED.nodes.id();
do { do {
workspaceIndex += 1; workspaceIndex += 1;
} while($("#workspace-tabs a[title='Workspace "+workspaceIndex+"']").size() != 0); } while($("#workspace-tabs a[title='Sheet "+workspaceIndex+"']").size() != 0);
var ws = {type:"workspace",id:tabId,label:"Workspace "+workspaceIndex}; var ws = {type:"workspace",id:tabId,label:"Sheet "+workspaceIndex};
RED.nodes.addWorkspace(ws); RED.nodes.addWorkspace(ws);
workspace_tabs.addTab(ws); workspace_tabs.addTab(ws);
workspace_tabs.activateTab(tabId); workspace_tabs.activateTab(tabId);