mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
refactor(frontend): remove max_budget_per_task input element for v1 (#11921)
This commit is contained in:
@@ -239,18 +239,20 @@ function AppSettingsScreen() {
|
|||||||
</SettingsSwitch>
|
</SettingsSwitch>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<SettingsInput
|
{!settings?.V1_ENABLED && (
|
||||||
testId="max-budget-per-task-input"
|
<SettingsInput
|
||||||
name="max-budget-per-task-input"
|
testId="max-budget-per-task-input"
|
||||||
type="number"
|
name="max-budget-per-task-input"
|
||||||
label={t(I18nKey.SETTINGS$MAX_BUDGET_PER_CONVERSATION)}
|
type="number"
|
||||||
defaultValue={settings.MAX_BUDGET_PER_TASK?.toString() || ""}
|
label={t(I18nKey.SETTINGS$MAX_BUDGET_PER_CONVERSATION)}
|
||||||
onChange={checkIfMaxBudgetPerTaskHasChanged}
|
defaultValue={settings.MAX_BUDGET_PER_TASK?.toString() || ""}
|
||||||
placeholder={t(I18nKey.SETTINGS$MAXIMUM_BUDGET_USD)}
|
onChange={checkIfMaxBudgetPerTaskHasChanged}
|
||||||
min={1}
|
placeholder={t(I18nKey.SETTINGS$MAXIMUM_BUDGET_USD)}
|
||||||
step={1}
|
min={1}
|
||||||
className="w-full max-w-[680px]" // Match the width of the language field
|
step={1}
|
||||||
/>
|
className="w-full max-w-[680px]" // Match the width of the language field
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
<div className="border-t border-t-tertiary pt-6 mt-2">
|
<div className="border-t border-t-tertiary pt-6 mt-2">
|
||||||
<h3 className="text-lg font-medium mb-2">
|
<h3 className="text-lg font-medium mb-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user