ui: better env var ux (#2006)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { ExtensionConfig } from '../../../api/types.gen';
|
||||
import { ToastServiceOptions } from '../../../toasts';
|
||||
import { toastService, ToastServiceOptions } from '../../../toasts';
|
||||
import { addToAgent, removeFromAgent } from './agent-api';
|
||||
|
||||
interface ActivateExtensionProps {
|
||||
@@ -147,6 +147,11 @@ export async function updateExtension({
|
||||
console.error('[updateExtension]: Failed to update disabled extension in config:', error);
|
||||
throw error;
|
||||
}
|
||||
// show a toast that it was successfully updated
|
||||
toastService.success({
|
||||
title: `Update extension`,
|
||||
msg: `Successfully updated ${extensionConfig.name} extension`,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user