mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 20:31:37 -05:00
Just make a copy when adding a new profile
This commit is contained in:
@@ -36,9 +36,9 @@ const ApiConfigManager = ({
|
||||
setInputValue("");
|
||||
}, [currentApiConfigName]);
|
||||
|
||||
const handleStartNew = () => {
|
||||
setEditState('new');
|
||||
setInputValue("");
|
||||
const handleAdd = () => {
|
||||
const newConfigName = currentApiConfigName + " (copy)";
|
||||
onUpsertConfig(newConfigName);
|
||||
};
|
||||
|
||||
const handleStartRename = () => {
|
||||
@@ -162,7 +162,7 @@ const ApiConfigManager = ({
|
||||
</select>
|
||||
<VSCodeButton
|
||||
appearance="icon"
|
||||
onClick={handleStartNew}
|
||||
onClick={handleAdd}
|
||||
title="Add profile"
|
||||
style={{
|
||||
padding: 0,
|
||||
|
||||
Reference in New Issue
Block a user