Skip to content

Commit

Permalink
Default flowFilePretty to true if projects enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
knolleary committed Sep 23, 2020
1 parent 103e212 commit b8b0247
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -563,7 +563,8 @@ function saveFlows(flows) {

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);
} else {
flowData = JSON.stringify(flows);
Expand All @@ -581,7 +582,8 @@ function saveCredentials(credentials) {
}

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);
} else {
credentialData = JSON.stringify(credentials);
Expand Down

0 comments on commit b8b0247

Please sign in to comment.