mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-08 00:44:27 +01:00
feat: show added extensions in settings v2 regardless of whether they activate (#2063)
This commit is contained in:
@@ -73,9 +73,15 @@ export default function ExtensionsSection() {
|
||||
|
||||
const handleAddExtension = async (formData: ExtensionFormData) => {
|
||||
const extensionConfig = createExtensionConfig(formData);
|
||||
await activateExtension({ addToConfig: addExtension, extensionConfig: extensionConfig });
|
||||
handleModalClose();
|
||||
await fetchExtensions();
|
||||
try {
|
||||
await activateExtension({ addToConfig: addExtension, extensionConfig: extensionConfig });
|
||||
} catch (error) {
|
||||
// Even if activation fails, the extension is added as disabled, so we want to show it
|
||||
console.error('Failed to activate extension:', error);
|
||||
} finally {
|
||||
handleModalClose();
|
||||
await fetchExtensions();
|
||||
}
|
||||
};
|
||||
|
||||
const handleUpdateExtension = async (formData: ExtensionFormData) => {
|
||||
|
||||
Reference in New Issue
Block a user