mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-10-07 16:38:34 +08:00
* fix: prevent deletion of the active LLM profile Hide the Delete option in the profile actions menu when the profile is the currently active one, so users cannot accidentally remove it. Co-authored-by: openhands <openhands@all-hands.dev> * fix: add tooltip to disabled Delete menu item for active profile When the Delete action is disabled because the profile is active, show a StyledTooltip ('Cannot delete the active profile') over the item so users understand why it is not interactive. - Add SETTINGS$PROFILE_CANNOT_DELETE_ACTIVE i18n key + all translations - Wrap the disabled Delete MenuItem in StyledTooltip with a span so pointer events reach the trigger on a disabled button - Add complementary test confirming Delete is enabled when isActive=false - Extend i18n mock with the new key Co-authored-by: openhands <openhands@all-hands.dev> * test: fix delete-modal tests to use inactive profile The two delete-modal tests were clicking Delete on the active profile, which is now correctly disabled. Switch both tests to the second (inactive) profile so they exercise the enabled path. Co-authored-by: openhands <openhands@all-hands.dev> --------- Co-authored-by: openhands <openhands@all-hands.dev>