Function
getDialogSettingsByType
(
type: SettingDefinition['type'],
)
Source from the content-addressed store, hash-verified
| 220 | * Get settings by type that should be shown in the dialog |
| 221 | */ |
| 222 | export function getDialogSettingsByType( |
| 223 | type: SettingDefinition['type'], |
| 224 | ): Array<SettingDefinition & { key: string }> { |
| 225 | return Object.values(FLATTENED_SCHEMA).filter( |
| 226 | (definition) => |
| 227 | definition.type === type && definition.showInDialog !== false, |
| 228 | ); |
| 229 | } |
| 230 | |
| 231 | /** |
| 232 | * Get all setting keys that should be shown in the dialog |
Tested by
no test coverage detected