[yew-devel] [PATCH yew-comp] pending_property_view: rename QemuPendingConfigValue to PendingConfigValue

Hannes Laimer h.laimer at proxmox.com
Wed Nov 26 11:41:52 CET 2025


Adapt to the renaming in pve-api-types [1].

[1] c0d8370 ("pve-api-types: rename QemuPendingConfigValue to PendingConfigValue")

Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
 src/pending_property_view/mod.rs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/pending_property_view/mod.rs b/src/pending_property_view/mod.rs
index 2747bc5..e10d99b 100644
--- a/src/pending_property_view/mod.rs
+++ b/src/pending_property_view/mod.rs
@@ -22,7 +22,7 @@ use pwt::AsyncAbortGuard;
 use pwt::{prelude::*, AsyncPool};
 
 use crate::{http_get_full, ApiLoadCallback, EditableProperty, PropertyEditDialog};
-use pve_api_types::QemuPendingConfigValue;
+use pve_api_types::PendingConfigValue;
 
 /// Pending configuration data
 ///
@@ -45,7 +45,7 @@ impl PvePendingConfiguration {
         }
     }
 
-    pub fn from_config_array(data: Vec<QemuPendingConfigValue>) -> Self {
+    pub fn from_config_array(data: Vec<PendingConfigValue>) -> Self {
         let (current, pending, keys) = pve_pending_config_array_to_objects(data);
         Self {
             current,
@@ -77,7 +77,7 @@ pub fn pending_typed_load<T: DeserializeOwned + Serialize>(
 
 /// Note: PVE API sometime return numbers as string, and bool as 1/0
 pub fn pve_pending_config_array_to_objects_typed<T: DeserializeOwned + Serialize>(
-    data: Vec<QemuPendingConfigValue>,
+    data: Vec<PendingConfigValue>,
 ) -> Result<PvePendingConfiguration, Error> {
     let (current, pending, keys) = pve_pending_config_array_to_objects(data);
 
@@ -376,7 +376,7 @@ pub fn render_pending_property_value(
 /// Returns 2 Objects, containing current and pending configuration,
 /// and the set of contained configuration keys.
 pub fn pve_pending_config_array_to_objects(
-    data: Vec<QemuPendingConfigValue>,
+    data: Vec<PendingConfigValue>,
 ) -> (Value, Value, HashSet<String>) {
     let mut current = serde_json::Map::new();
     let mut pending = serde_json::Map::new();
-- 
2.47.3





More information about the yew-devel mailing list