mirror of
https://github.com/laurent22/joplin.git
synced 2026-11-02 06:50:38 +00:00
Desktop, Mobile, Cli: Make feature flags advanced settings by default
This commit is contained in:
1 parent
5fdd088504
commit
700ffa2529
1 file changed
+7
-1
@@ -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>;
|
||||
|
||||
Reference in new issue
Block a user