forked from phoenix/litellm-mirror
ui - view and set alerting types
This commit is contained in:
parent
beeee01199
commit
29b1002b3b
1 changed files with 18 additions and 0 deletions
|
@ -169,6 +169,24 @@ const Settings: React.FC<SettingsPageProps> = ({
|
|||
</li>
|
||||
))}
|
||||
</ul>
|
||||
{callback.alerting_types && (
|
||||
<div>
|
||||
<Text className="mt-2">Alerting Types</Text>
|
||||
<Select
|
||||
mode="multiple"
|
||||
style={{ width: '100%' }}
|
||||
placeholder="Select Alerting Types"
|
||||
optionLabelProp="label"
|
||||
defaultValue={callback.alerting_types}
|
||||
>
|
||||
{callback.alerting_types.map((type: string) => (
|
||||
<Select.Option key={type} value={type} label={type}>
|
||||
{type}
|
||||
</Select.Option>
|
||||
))}
|
||||
</Select>
|
||||
</div>
|
||||
)}
|
||||
<Button className="mt-2" onClick={() => handleSaveChanges(callback)}>
|
||||
Save Changes
|
||||
</Button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue