Show all requests in template fn dialog

This commit is contained in:
Gregory Schier
2024-09-24 07:14:36 -07:00
parent 574a92f5b7
commit 3818154e82
2 changed files with 4 additions and 7 deletions

View File

@@ -53,7 +53,6 @@ impl PluginRuntime for PluginRuntimeServerImpl {
let (to_plugin_tx, to_plugin_rx) = mpsc::channel::<tonic::Result<EventStreamEvent>>(128);
let mut app_to_plugin_events_tx = self.app_to_plugin_events_tx.lock().await;
*app_to_plugin_events_tx = Some(to_plugin_tx);
println!("GRPC CLIENT CONNECTED");
let plugin_to_app_events_tx = self.plugin_to_app_events_tx.clone();
let client_disconnect_tx = self.client_disconnect_tx.clone();

View File

@@ -214,12 +214,10 @@ function HttpRequestArg({
onChange={onChange}
value={value}
options={[
...httpRequests
.filter((r) => r.id != activeRequest?.id)
.map((r) => ({
label: fallbackRequestName(r),
value: r.id,
})),
...httpRequests.map((r) => ({
label: fallbackRequestName(r) + (activeRequest?.id === r.id ? ' (current)' : ''),
value: r.id,
})),
]}
/>
);