@@ -3916,17 +4162,30 @@ export function IntegrationsView({
- {newKey.loading ? (
+
+ {pluginSetupTab === "agent" && dialogPlugin ? (
+
+ ) : newKey.loading ? (
Generating your key…
- ) : (
+ ) : newKey.key ? (
+ ) : (
+
+
+ We couldn't generate the key for the manual setup.
+
+
Try again
+
)}
@@ -3940,6 +4199,7 @@ export function IntegrationsView({
pluginId: null,
loading: false,
})
+ setPluginSetupTab("agent")
void setConnectTarget(null)
}}
className={cn(
@@ -4078,7 +4338,7 @@ export function IntegrationsView({
if (!connectedPluginId) return
const pluginId = connectedPluginId
setConnectedPluginId(null)
- createPluginKeyMutation.mutate(pluginId)
+ openPluginSetup(pluginId)
}}
disabled={!!connectingPlugin}
>
@@ -4109,91 +4369,6 @@ export function IntegrationsView({
-
-