mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
NLS Context sidebar
This commit is contained in:
parent
d21e719cc1
commit
d3598d5854
@ -48,7 +48,7 @@ RED.sidebar.context = (function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
nodeSection = sections.add({
|
nodeSection = sections.add({
|
||||||
title: "Node",
|
title: RED._("sidebar.context.node"),
|
||||||
collapsible: true,
|
collapsible: true,
|
||||||
// onexpand: function() {
|
// onexpand: function() {
|
||||||
// updateNode(currentNode,true);
|
// updateNode(currentNode,true);
|
||||||
@ -85,7 +85,7 @@ RED.sidebar.context = (function() {
|
|||||||
// subflowSection.container.hide();
|
// subflowSection.container.hide();
|
||||||
|
|
||||||
flowSection = sections.add({
|
flowSection = sections.add({
|
||||||
title: "Flow",
|
title: RED._("sidebar.context.flow"),
|
||||||
collapsible: true
|
collapsible: true
|
||||||
});
|
});
|
||||||
flowSection.expand();
|
flowSection.expand();
|
||||||
@ -103,7 +103,7 @@ RED.sidebar.context = (function() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
globalSection = sections.add({
|
globalSection = sections.add({
|
||||||
title: "Global",
|
title: RED._("sidebar.context.global"),
|
||||||
collapsible: true
|
collapsible: true
|
||||||
});
|
});
|
||||||
globalSection.expand();
|
globalSection.expand();
|
||||||
@ -187,9 +187,9 @@ RED.sidebar.context = (function() {
|
|||||||
} else {
|
} else {
|
||||||
$(nodeSection.table).empty();
|
$(nodeSection.table).empty();
|
||||||
if (node) {
|
if (node) {
|
||||||
$('<tr class="node-info-node-row red-ui-search-empty blank" colspan="2"><td>refresh to load</td></tr>').appendTo(nodeSection.table);
|
$('<tr class="node-info-node-row red-ui-search-empty blank" colspan="2"><td data-i18n="sidebar.context.refresh"></td></tr>').appendTo(nodeSection.table).i18n();
|
||||||
} else {
|
} else {
|
||||||
$('<tr class="node-info-node-row red-ui-search-empty blank" colspan="2"><td>none selected</td></tr>').appendTo(nodeSection.table);
|
$('<tr class="node-info-node-row red-ui-search-empty blank" colspan="2"><td data-i18n="sidebar.context.none"></td></tr>').appendTo(nodeSection.table).i18n();
|
||||||
}
|
}
|
||||||
nodeSection.timestamp.html(" ");
|
nodeSection.timestamp.html(" ");
|
||||||
|
|
||||||
@ -245,7 +245,7 @@ RED.sidebar.context = (function() {
|
|||||||
}).appendTo(propRow.children()[1]);
|
}).appendTo(propRow.children()[1]);
|
||||||
}
|
}
|
||||||
if (l === 0) {
|
if (l === 0) {
|
||||||
$('<tr class="node-info-node-row red-ui-search-empty blank" colspan="2"><td>empty</td></tr>').appendTo(container);
|
$('<tr class="node-info-node-row red-ui-search-empty blank" colspan="2"><td data-i18n="sidebar.context.empty"></td></tr>').appendTo(container).i18n();
|
||||||
}
|
}
|
||||||
$(section.timestamp).text(new Date().toLocaleString());
|
$(section.timestamp).text(new Date().toLocaleString());
|
||||||
});
|
});
|
||||||
@ -256,7 +256,7 @@ RED.sidebar.context = (function() {
|
|||||||
refreshEntry(section,baseUrl,id);
|
refreshEntry(section,baseUrl,id);
|
||||||
} else {
|
} else {
|
||||||
$(container).empty();
|
$(container).empty();
|
||||||
$('<tr class="node-info-node-row red-ui-search-empty blank" colspan="2"><td>none selected</td></tr>').appendTo(container);
|
$('<tr class="node-info-node-row red-ui-search-empty blank" colspan="2"><td data-i18n="sidebar.context.none"></td></tr>').appendTo(container).i18n();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -457,8 +457,14 @@
|
|||||||
"filtered": "__count__ hidden"
|
"filtered": "__count__ hidden"
|
||||||
},
|
},
|
||||||
"context": {
|
"context": {
|
||||||
"name":"Context",
|
"name":"Context Data",
|
||||||
"label":"context"
|
"label":"context",
|
||||||
|
"none": "none selected",
|
||||||
|
"refresh": "refresh to load",
|
||||||
|
"empty": "empty",
|
||||||
|
"node": "Node",
|
||||||
|
"flow": "Flow",
|
||||||
|
"global": "Global"
|
||||||
},
|
},
|
||||||
"palette": {
|
"palette": {
|
||||||
"name": "Palette management",
|
"name": "Palette management",
|
||||||
|
Loading…
Reference in New Issue
Block a user