+ {configuration.map((item) => {
+ const value = item.value;
+ return (
+
+
+
{item.name}
+
{item.description} · {item.scopes.join(', ')}
+
{item.key}
+
+ {item.type === 'boolean' ? (
+
void run(item.key, async () => {
+ await wrap(() => api.post('/admin/api/features', { action: 'save', expectedRevision: revision, values: valuesFor(item.key, next), overrides: Object.fromEntries(features.filter((f) => f.source === 'override').map((f) => [f.key, f.enabled])) }), 'Configuration saved.');
+ await reload();
+ })}
+ />
+ ) : item.type === 'enum' ? (
+
+ ) : item.type === 'json' ? (
+