Skip to content

Commit

Permalink
Disable incomplete features (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvire authored Jan 26, 2024
1 parent 34c525a commit 98c1428
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions scripts/convertConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,25 @@ function convertConfig(dataDir: string, verbose: number) {
};
*/

return filterFeaturesNotReady(data);
}

function filterFeaturesNotReady(data: ConfigData) {
// Search is not done
data.mainFeatures['search'] = false;

// User Accounts is not done
data.mainFeatures['user-accounts'] = false;

// Two pane and Verse-By-Verse are not done
if (data.layouts) {
for (const layout of data.layouts) {
if (layout.mode === 'two' || layout.mode === 'verse-by-verse') {
layout.enabled = false;
}
}
}

return data;
}

Expand Down

0 comments on commit 98c1428

Please sign in to comment.