feat: Modify the selection order of user Settings and workspace Settings

This commit is contained in:
刘伟光
2026-01-08 11:50:55 +08:00
parent 509d304742
commit f6a753cf78

View File

@@ -14,7 +14,6 @@ import type { LoadedSettings } from '../../config/settings.js';
import { SettingScope } from '../../config/settings.js';
import { getScopeMessageForSetting } from '../../utils/dialogScopeUtils.js';
import { useKeypress } from '../hooks/useKeypress.js';
// import { ScopeSelector } from './shared/ScopeSelector.js';
import { t } from '../../i18n/index.js';
interface ApprovalModeDialogProps {
@@ -103,10 +102,6 @@ export function ApprovalModeDialog({
setHighlightedMode(mode);
};
// const handleScopeHighlight = useCallback((scope: SettingScope) => {
// setSelectedScope(scope);
// }, []);
const handleScopeSelect = useCallback(
(scope: SettingScope) => {
onSelect(highlightedMode, scope);
@@ -173,12 +168,6 @@ export function ApprovalModeDialog({
{/* Scope Selection */}
<Box marginTop={1}>
{/* <ScopeSelector
onSelect={handleScopeSelect}
onHighlight={handleScopeHighlight}
isFocused={focusSection === 'scope'}
initialScope={selectedScope}
/> */}
<RadioButtonSelect
items={scopeItems}
initialIndex={0}