ui: better env var ux (#2006)

This commit is contained in:
Lily Delalande
2025-04-02 17:52:57 -04:00
committed by GitHub
parent fc230ded9b
commit 96bcaa146c
3 changed files with 31 additions and 7 deletions
@@ -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`,
});
}
}