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
@@ -53,7 +53,6 @@ impl PluginRuntime for PluginRuntimeServerImpl {
let (to_plugin_tx, to_plugin_rx) = mpsc::channel::<tonic::Result<EventStreamEvent>>(128); 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; let mut app_to_plugin_events_tx = self.app_to_plugin_events_tx.lock().await;
*app_to_plugin_events_tx = Some(to_plugin_tx); *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 plugin_to_app_events_tx = self.plugin_to_app_events_tx.clone();
let client_disconnect_tx = self.client_disconnect_tx.clone(); let client_disconnect_tx = self.client_disconnect_tx.clone();
@@ -214,12 +214,10 @@ function HttpRequestArg({
onChange={onChange} onChange={onChange}
value={value} value={value}
options={[ options={[
...httpRequests ...httpRequests.map((r) => ({
.filter((r) => r.id != activeRequest?.id) label: fallbackRequestName(r) + (activeRequest?.id === r.id ? ' (current)' : ''),
.map((r) => ({ value: r.id,
label: fallbackRequestName(r), })),
value: r.id,
})),
]} ]}
/> />
); );