1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Desktop, Mobile, Cli: Make feature flags advanced settings by default

This commit is contained in:
Laurent Cozic 2024-08-23 11:39:40 +01:00
parent 5fdd088504
commit 700ffa2529

View File

@ -45,7 +45,7 @@ const builtInMetadata = (Setting: typeof SettingType) => {
return output;
};
return {
const output = {
'clientId': {
value: '',
type: SettingItemType.String,
@ -1630,6 +1630,12 @@ const builtInMetadata = (Setting: typeof SettingType) => {
isGlobal: false,
},
} satisfies Record<string, SettingItem>;
for (const [key, md] of Object.entries(output)) {
if (key.startsWith('featureFlag.')) (md as SettingItem).advanced = true;
}
return output;
};
export type BuiltInMetadataKeys = keyof ReturnType<typeof builtInMetadata>;