mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Ensure RED._ is defined before initialising settings
- remove permissions requirement from locales files so the login dialog can be nls'd
This commit is contained in:
parent
d0af4aac4d
commit
f70e9ea076
@ -16,10 +16,6 @@
|
|||||||
var RED = (function() {
|
var RED = (function() {
|
||||||
|
|
||||||
|
|
||||||
function loadLocales() {
|
|
||||||
RED.i18n.init(loadEditor);
|
|
||||||
}
|
|
||||||
|
|
||||||
function loadNodeList() {
|
function loadNodeList() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
headers: {
|
headers: {
|
||||||
@ -225,7 +221,9 @@ var RED = (function() {
|
|||||||
|
|
||||||
ace.require("ace/ext/language_tools");
|
ace.require("ace/ext/language_tools");
|
||||||
|
|
||||||
RED.settings.init(loadLocales);
|
RED.i18n.init(function() {
|
||||||
|
RED.settings.init(loadEditor);
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ function init(adminApp,storage) {
|
|||||||
adminApp.get("/nodes/:mod/:set",needsPermission("nodes.read"),nodes.getSet);
|
adminApp.get("/nodes/:mod/:set",needsPermission("nodes.read"),nodes.getSet);
|
||||||
adminApp.put("/nodes/:mod/:set",needsPermission("nodes.write"),nodes.putSet);
|
adminApp.put("/nodes/:mod/:set",needsPermission("nodes.write"),nodes.putSet);
|
||||||
|
|
||||||
adminApp.get(/locales\/(.+)\/?$/,needsPermission("nodes.read"),locales.get);
|
adminApp.get(/locales\/(.+)\/?$/,locales.get);
|
||||||
|
|
||||||
// Library
|
// Library
|
||||||
library.init(adminApp);
|
library.init(adminApp);
|
||||||
|
Loading…
Reference in New Issue
Block a user