mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-07-04 12:01:52 +02:00
Show all requests in template fn dialog
This commit is contained in:
@@ -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,
|
|
||||||
})),
|
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user