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 D0F4E1FF165 for ; Thu, 23 Oct 2025 10:32:35 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id C37C5378F; Thu, 23 Oct 2025 10:32:59 +0200 (CEST) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Date: Thu, 23 Oct 2025 10:28:16 +0200 Message-ID: <20251023083253.1038119-13-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251023083253.1038119-1-d.csapak@proxmox.com> References: <20251023083253.1038119-1-d.csapak@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.028 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 Subject: [pdm-devel] [PATCH datacenter-manager v2 12/16] ui: dashboard: remove unused remote list 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" this was introduced in commit 9f2256c7 (ui: dashboard: make better use of the status api call) but never actually used, so simply remove them and the corresponding _context_listener. Signed-off-by: Dominik Csapak --- ui/src/dashboard/mod.rs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/ui/src/dashboard/mod.rs b/ui/src/dashboard/mod.rs index 06283500..e4115c6d 100644 --- a/ui/src/dashboard/mod.rs +++ b/ui/src/dashboard/mod.rs @@ -21,7 +21,7 @@ use pwt::{ use pdm_api_types::{remotes::RemoteType, resource::ResourcesStatus, TaskStatistics}; -use crate::{pve::GuestType, remotes::AddWizard, RemoteList}; +use crate::{pve::GuestType, remotes::AddWizard}; mod top_entities; pub use top_entities::create_top_entities_panel; @@ -84,7 +84,6 @@ pub enum LoadingResult { pub enum Msg { LoadingFinished(LoadingResult), - RemoteListChanged(RemoteList), CreateWizard(Option), Reload, ForceReload, @@ -106,10 +105,8 @@ pub struct PdmDashboard { loaded_once: bool, loading: bool, load_finished_time: Option, - remote_list: RemoteList, show_wizard: Option, show_config_window: bool, - _context_listener: ContextHandle, async_pool: AsyncPool, config: PersistentState, } @@ -177,11 +174,6 @@ impl Component for PdmDashboard { PersistentState::new(StorageLocation::local(refresh_config_id("dashboard"))); let async_pool = AsyncPool::new(); - let (remote_list, _context_listener) = ctx - .link() - .context(ctx.link().callback(Msg::RemoteListChanged)) - .expect("No Remote list context provided"); - let mut this = Self { status: None, last_error: None, @@ -194,10 +186,8 @@ impl Component for PdmDashboard { loaded_once: false, loading: true, load_finished_time: None, - remote_list, show_wizard: None, show_config_window: false, - _context_listener, async_pool, config, }; @@ -246,11 +236,6 @@ impl Component for PdmDashboard { } true } - Msg::RemoteListChanged(remote_list) => { - let changed = self.remote_list != remote_list; - self.remote_list = remote_list; - changed - } Msg::CreateWizard(remote_type) => { self.show_wizard = remote_type; true -- 2.47.3 _______________________________________________ pdm-devel mailing list pdm-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel