Skip to content

Commit 7efbce6

Browse files
committed
fix: add onIntegrationChange prop to IntegrationsManager
1 parent 08e0172 commit 7efbce6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/settings/integrations-manager.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ const SYSTEM_INTEGRATION_LABELS: Record<string, string> = {
2727

2828
type IntegrationsManagerProps = {
2929
showCreateDialog: boolean;
30+
onIntegrationChange?: () => void;
3031
};
3132

3233
export function IntegrationsManager({
3334
showCreateDialog: externalShowCreateDialog,
35+
onIntegrationChange,
3436
}: IntegrationsManagerProps) {
3537
const [integrations, setIntegrations] = useState<Integration[]>([]);
3638
const [loading, setLoading] = useState(true);
@@ -67,6 +69,7 @@ export function IntegrationsManager({
6769
await api.integration.delete(id);
6870
toast.success("Integration deleted");
6971
await loadIntegrations();
72+
onIntegrationChange?.();
7073
} catch (error) {
7174
console.error("Failed to delete integration:", error);
7275
toast.error("Failed to delete integration");
@@ -102,6 +105,7 @@ export function IntegrationsManager({
102105

103106
const handleDialogSuccess = async () => {
104107
await loadIntegrations();
108+
onIntegrationChange?.();
105109
};
106110

107111
if (loading) {

0 commit comments

Comments
 (0)