tui: rename SetupInfo::product_cfg -> ::config

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
This commit is contained in:
Christoph Heiss 2023-06-15 13:10:52 +02:00
parent 81f9348c14
commit fbfd1838a6
2 changed files with 3 additions and 3 deletions

View 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()

View 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,
}