From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 63DDB1FF183 for ; Wed, 10 Sep 2025 13:53:33 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id DE6E51FAE9; Wed, 10 Sep 2025 13:53:37 +0200 (CEST) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Date: Wed, 10 Sep 2025 13:52:51 +0200 Message-ID: <20250910115259.3530107-4-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250910115259.3530107-1-d.csapak@proxmox.com> References: <20250910115259.3530107-1-d.csapak@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -2.476 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_DBL_SPAM 5 Contains a spam URL listed in the Spamhaus DBL blocklist [tasks.rs] Subject: [pdm-devel] [PATCH datacenter-manager 2/5] ui: remote: tasks: add remote filter X-BeenThere: pdm-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Datacenter Manager development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pdm-devel-bounces@lists.proxmox.com Sender: "pdm-devel" adds a new RemoteSelector to the filters for the remote task list Signed-off-by: Dominik Csapak --- ui/src/remotes/tasks.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ui/src/remotes/tasks.rs b/ui/src/remotes/tasks.rs index 138b899..9099e89 100644 --- a/ui/src/remotes/tasks.rs +++ b/ui/src/remotes/tasks.rs @@ -13,7 +13,7 @@ use proxmox_yew_comp::{ }; use pwt::{ css::{FlexFit, JustifyContent}, - props::{ContainerBuilder, WidgetBuilder}, + props::{ContainerBuilder, FieldBuilder, WidgetBuilder}, tr, widget::{ data_table::{DataTableColumn, DataTableHeader}, @@ -21,7 +21,7 @@ use pwt::{ }, }; -use crate::tasks::format_optional_remote_upid; +use crate::{tasks::format_optional_remote_upid, widget::RemoteSelector}; #[derive(PartialEq, Properties)] pub struct RemoteTaskList; @@ -133,7 +133,11 @@ impl Component for PbsRemoteTaskList { let link = ctx.link().clone(); move |(upid_str, endtime)| link.send_message(Some((upid_str, endtime))) }) - .columns(self.columns.clone()), + .columns(self.columns.clone()) + .extra_filter( + tr!("Remote"), + RemoteSelector::new().name("remote").placeholder(tr!("All")), + ), ) .with_optional_child(task) .into() -- 2.47.3 _______________________________________________ pdm-devel mailing list pdm-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel