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

Put Projects behind feature flag within editor

This commit is contained in:
Nick O'Leary 2018-01-22 23:33:05 +00:00
parent 84711beec0
commit 757e72100d
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -61,7 +61,7 @@
$(".palette-scroll").removeClass("hide");
$("#palette-search").removeClass("hide");
loadFlows(function() {
if (RED.settings.theme("projects.enabled",true)) {
if (RED.settings.theme("projects.enabled",false)) {
RED.projects.refresh(function(activeProject) {
RED.sidebar.info.refresh()
if (!activeProject) {
@ -317,7 +317,7 @@
function loadEditor() {
var menuOptions = [];
if (RED.settings.theme("projects.enabled",true)) {
if (RED.settings.theme("projects.enabled",false)) {
menuOptions.push({id:"menu-item-projects-menu",label:"Projects",options:[
{id:"menu-item-projects-new",label:"New...",disabled:false,onselect:"core:new-project"},
{id:"menu-item-projects-open",label:"Open...",disabled:false,onselect:"core:open-project"}
@ -393,10 +393,10 @@
RED.sidebar.init();
if (RED.settings.theme("projects.enabled",true)) {
if (RED.settings.theme("projects.enabled",false)) {
RED.projects.init();
} else {
console.log("Palette editor disabled");
console.log("Projects disabled");
}
RED.subflow.init();