mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Default flowFilePretty to true if projects enabled
This commit is contained in:
parent
103e212aee
commit
b8b0247717
@ -563,7 +563,8 @@ function saveFlows(flows) {
|
|||||||
|
|
||||||
var flowData;
|
var flowData;
|
||||||
|
|
||||||
if (settings.flowFilePretty) {
|
if (settings.flowFilePretty || (activeProject && settings.flowFilePretty !== false) ) {
|
||||||
|
// Pretty format if option enabled, or using Projects and not explicitly disabled
|
||||||
flowData = JSON.stringify(flows,null,4);
|
flowData = JSON.stringify(flows,null,4);
|
||||||
} else {
|
} else {
|
||||||
flowData = JSON.stringify(flows);
|
flowData = JSON.stringify(flows);
|
||||||
@ -581,7 +582,8 @@ function saveCredentials(credentials) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var credentialData;
|
var credentialData;
|
||||||
if (settings.flowFilePretty) {
|
if (settings.flowFilePretty || (activeProject && settings.flowFilePretty !== false) ) {
|
||||||
|
// Pretty format if option enabled, or using Projects and not explicitly disabled
|
||||||
credentialData = JSON.stringify(credentials,null,4);
|
credentialData = JSON.stringify(credentials,null,4);
|
||||||
} else {
|
} else {
|
||||||
credentialData = JSON.stringify(credentials);
|
credentialData = JSON.stringify(credentials);
|
||||||
|
Loading…
Reference in New Issue
Block a user