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:
parent
84711beec0
commit
757e72100d
@ -61,7 +61,7 @@
|
|||||||
$(".palette-scroll").removeClass("hide");
|
$(".palette-scroll").removeClass("hide");
|
||||||
$("#palette-search").removeClass("hide");
|
$("#palette-search").removeClass("hide");
|
||||||
loadFlows(function() {
|
loadFlows(function() {
|
||||||
if (RED.settings.theme("projects.enabled",true)) {
|
if (RED.settings.theme("projects.enabled",false)) {
|
||||||
RED.projects.refresh(function(activeProject) {
|
RED.projects.refresh(function(activeProject) {
|
||||||
RED.sidebar.info.refresh()
|
RED.sidebar.info.refresh()
|
||||||
if (!activeProject) {
|
if (!activeProject) {
|
||||||
@ -317,7 +317,7 @@
|
|||||||
|
|
||||||
function loadEditor() {
|
function loadEditor() {
|
||||||
var menuOptions = [];
|
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:[
|
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-new",label:"New...",disabled:false,onselect:"core:new-project"},
|
||||||
{id:"menu-item-projects-open",label:"Open...",disabled:false,onselect:"core:open-project"}
|
{id:"menu-item-projects-open",label:"Open...",disabled:false,onselect:"core:open-project"}
|
||||||
@ -393,10 +393,10 @@
|
|||||||
|
|
||||||
RED.sidebar.init();
|
RED.sidebar.init();
|
||||||
|
|
||||||
if (RED.settings.theme("projects.enabled",true)) {
|
if (RED.settings.theme("projects.enabled",false)) {
|
||||||
RED.projects.init();
|
RED.projects.init();
|
||||||
} else {
|
} else {
|
||||||
console.log("Palette editor disabled");
|
console.log("Projects disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
RED.subflow.init();
|
RED.subflow.init();
|
||||||
|
Loading…
Reference in New Issue
Block a user