From 3818154e8283826e189cea465d5e7dacdb8eec9f Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 24 Sep 2024 07:14:36 -0700 Subject: [PATCH] Show all requests in template fn dialog --- src-tauri/yaak_plugin_runtime/src/server.rs | 1 - src-web/components/TemplateFunctionDialog.tsx | 10 ++++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src-tauri/yaak_plugin_runtime/src/server.rs b/src-tauri/yaak_plugin_runtime/src/server.rs index ccfba40c..9ee124c2 100644 --- a/src-tauri/yaak_plugin_runtime/src/server.rs +++ b/src-tauri/yaak_plugin_runtime/src/server.rs @@ -53,7 +53,6 @@ impl PluginRuntime for PluginRuntimeServerImpl { let (to_plugin_tx, to_plugin_rx) = mpsc::channel::>(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(); diff --git a/src-web/components/TemplateFunctionDialog.tsx b/src-web/components/TemplateFunctionDialog.tsx index 81862a9e..8bd42a0b 100644 --- a/src-web/components/TemplateFunctionDialog.tsx +++ b/src-web/components/TemplateFunctionDialog.tsx @@ -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, + })), ]} /> );