]> git.proxmox.com Git - pve-installer.git/commitdiff
tui: rename `SetupInfo::product_cfg` -> `::config`
authorChristoph Heiss <c.heiss@proxmox.com>
Thu, 15 Jun 2023 11:10:52 +0000 (13:10 +0200)
committerChristoph Heiss <c.heiss@proxmox.com>
Thu, 15 Jun 2023 11:10:52 +0000 (13:10 +0200)
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
proxmox-tui-installer/src/main.rs
proxmox-tui-installer/src/setup.rs

index f857de2ca028dcf017689bea217665f58d5ffa24..8cc068467b21fab84df2aafe1499b59a6798a800 100644 (file)
@@ -80,7 +80,7 @@ impl InstallerView {
     pub fn with_raw(state: &InstallerState, view: impl View) -> Self {
         let setup = &state.setup_info;
 
-        let logo = match setup.product_cfg.product {
+        let logo = match setup.config.product {
             ProxmoxProduct::PVE => LOGO_PVE,
             ProxmoxProduct::PBS => LOGO_PBS,
             ProxmoxProduct::PMG => LOGO_PMG,
@@ -88,7 +88,7 @@ impl InstallerView {
 
         let title = format!(
             "{} ({}-{}) Installer",
-            setup.product_cfg.fullname, setup.iso_info.release, setup.iso_info.isorelease
+            setup.config.fullname, setup.iso_info.release, setup.iso_info.isorelease
         );
 
         let inner = LinearLayout::vertical()
index b9d045e1bb921c62c21ec7828ef8a4c69114e926..8132f9415ba082df483a93cd023423c31f1b0b3c 100644 (file)
@@ -28,7 +28,7 @@ pub struct IsoInfo {
 #[derive(Clone, Deserialize)]
 pub struct SetupInfo {
     #[serde(rename = "product-cfg")]
-    pub product_cfg: ProductConfig,
+    pub config: ProductConfig,
     #[serde(rename = "iso-info")]
     pub iso_info: IsoInfo,
 }