operator input: per-agent /send form (dashboard T4LK removed)

This commit is contained in:
müde 2026-05-15 15:28:17 +02:00
parent 3c493934da
commit 409263f1c9
8 changed files with 142 additions and 52 deletions

View file

@ -63,8 +63,18 @@ async fn main() -> Result<()> {
let ui_state = login_state.clone();
let bus = Bus::new();
let ui_bus = bus.clone();
let ui_socket = cli.socket.clone();
tokio::spawn(async move {
if let Err(e) = web_ui::serve(label, port, ui_state, ui_bus).await {
if let Err(e) = web_ui::serve(
label,
port,
ui_state,
ui_bus,
ui_socket,
web_ui::Flavor::Agent,
)
.await
{
tracing::error!(error = ?e, "web ui failed");
}
});

View file

@ -74,8 +74,18 @@ async fn main() -> Result<()> {
let ui_state = login_state.clone();
let bus = Bus::new();
let ui_bus = bus.clone();
let ui_socket = cli.socket.clone();
tokio::spawn(async move {
if let Err(e) = web_ui::serve(label, port, ui_state, ui_bus).await {
if let Err(e) = web_ui::serve(
label,
port,
ui_state,
ui_bus,
ui_socket,
web_ui::Flavor::Manager,
)
.await
{
tracing::error!(error = ?e, "web ui failed");
}
});