mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-24 01:24:28 +01:00
feat: view/edit existing recipe in Desktop (#2670)
This commit is contained in:
@@ -527,23 +527,7 @@ export default function App() {
|
||||
)}
|
||||
{view === 'recipeEditor' && (
|
||||
<RecipeEditor
|
||||
key={viewOptions?.config ? 'with-config' : 'no-config'}
|
||||
config={viewOptions?.config || window.electron.getConfig().recipeConfig}
|
||||
onClose={() => setView('chat')}
|
||||
setView={setView}
|
||||
onSave={(config) => {
|
||||
console.log('Saving recipe config:', config);
|
||||
window.electron.createChatWindow(
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
config,
|
||||
'recipeEditor',
|
||||
{ config }
|
||||
);
|
||||
setView('chat');
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{view === 'permission' && (
|
||||
|
||||
Reference in New Issue
Block a user