mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Tidy up sheets/flows labelling
This commit is contained in:
parent
c90fd1e6d8
commit
a0aee2021d
@ -792,8 +792,8 @@ RED.editor = (function() {
|
|||||||
|
|
||||||
var tabSelect = $("#node-config-dialog-scope").empty();
|
var tabSelect = $("#node-config-dialog-scope").empty();
|
||||||
tabSelect.off("change");
|
tabSelect.off("change");
|
||||||
tabSelect.append('<option value=""'+(!configNode.z?" selected":"")+' data-i18n="workspace.config.global"></option>');
|
tabSelect.append('<option value=""'+(!configNode.z?" selected":"")+' data-i18n="sidebar.config.global"></option>');
|
||||||
tabSelect.append('<option disabled>flows</option>');
|
tabSelect.append('<option disabled data-i18n="sidebar.config.flows"></option>');
|
||||||
RED.nodes.eachWorkspace(function(ws) {
|
RED.nodes.eachWorkspace(function(ws) {
|
||||||
var workspaceLabel = ws.label;
|
var workspaceLabel = ws.label;
|
||||||
if (nodeUserFlows[ws.id]) {
|
if (nodeUserFlows[ws.id]) {
|
||||||
@ -801,7 +801,7 @@ RED.editor = (function() {
|
|||||||
}
|
}
|
||||||
tabSelect.append('<option value="'+ws.id+'"'+(ws.id==configNode.z?" selected":"")+'>'+workspaceLabel+'</option>');
|
tabSelect.append('<option value="'+ws.id+'"'+(ws.id==configNode.z?" selected":"")+'>'+workspaceLabel+'</option>');
|
||||||
});
|
});
|
||||||
tabSelect.append('<option disabled>subflows</option>');
|
tabSelect.append('<option disabled data-i18n="sidebar.config.subflows"></option>');
|
||||||
RED.nodes.eachSubflow(function(ws) {
|
RED.nodes.eachSubflow(function(ws) {
|
||||||
var workspaceLabel = ws.name;
|
var workspaceLabel = ws.name;
|
||||||
if (nodeUserFlows[ws.id]) {
|
if (nodeUserFlows[ws.id]) {
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
"subflows": "Subflows",
|
"subflows": "Subflows",
|
||||||
"createSubflow": "Create Subflow",
|
"createSubflow": "Create Subflow",
|
||||||
"selectionToSubflow": "Selection to Subflow",
|
"selectionToSubflow": "Selection to Subflow",
|
||||||
"flows": "Sheets",
|
"flows": "Tabs",
|
||||||
"add": "Add",
|
"add": "Add",
|
||||||
"rename": "Rename",
|
"rename": "Rename",
|
||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
@ -197,9 +197,11 @@
|
|||||||
"config": {
|
"config": {
|
||||||
"name": "Configuration nodes",
|
"name": "Configuration nodes",
|
||||||
"label": "config",
|
"label": "config",
|
||||||
"local": "on this sheet",
|
"local": "on this flow",
|
||||||
"global": "on all sheets",
|
"global": "on all flows",
|
||||||
"none": "none"
|
"none": "none",
|
||||||
|
"subflows": "subflows",
|
||||||
|
"flows": "flows"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
var log = require("../log");
|
||||||
var api = require("../nodes");
|
var api = require("../nodes");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@ -23,6 +24,7 @@ module.exports = {
|
|||||||
// registry module that knows about node types.
|
// registry module that knows about node types.
|
||||||
var nodeType = req.params.type;
|
var nodeType = req.params.type;
|
||||||
var nodeID = req.params.id;
|
var nodeID = req.params.id;
|
||||||
|
log.audit({event: "credentials.get",type:nodeType,id:nodeID},req);
|
||||||
var credentials = api.getCredentials(nodeID);
|
var credentials = api.getCredentials(nodeID);
|
||||||
if (!credentials) {
|
if (!credentials) {
|
||||||
res.json({});
|
res.json({});
|
||||||
|
Loading…
Reference in New Issue
Block a user