mirror of
https://git.proxmox.com/git/pve-installer
synced 2025-05-01 01:44:49 +00:00
tui: rename SetupInfo::product_cfg
-> ::config
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
This commit is contained in:
parent
81f9348c14
commit
fbfd1838a6
@ -80,7 +80,7 @@ impl InstallerView {
|
|||||||
pub fn with_raw(state: &InstallerState, view: impl View) -> Self {
|
pub fn with_raw(state: &InstallerState, view: impl View) -> Self {
|
||||||
let setup = &state.setup_info;
|
let setup = &state.setup_info;
|
||||||
|
|
||||||
let logo = match setup.product_cfg.product {
|
let logo = match setup.config.product {
|
||||||
ProxmoxProduct::PVE => LOGO_PVE,
|
ProxmoxProduct::PVE => LOGO_PVE,
|
||||||
ProxmoxProduct::PBS => LOGO_PBS,
|
ProxmoxProduct::PBS => LOGO_PBS,
|
||||||
ProxmoxProduct::PMG => LOGO_PMG,
|
ProxmoxProduct::PMG => LOGO_PMG,
|
||||||
@ -88,7 +88,7 @@ impl InstallerView {
|
|||||||
|
|
||||||
let title = format!(
|
let title = format!(
|
||||||
"{} ({}-{}) Installer",
|
"{} ({}-{}) 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()
|
let inner = LinearLayout::vertical()
|
||||||
|
@ -28,7 +28,7 @@ pub struct IsoInfo {
|
|||||||
#[derive(Clone, Deserialize)]
|
#[derive(Clone, Deserialize)]
|
||||||
pub struct SetupInfo {
|
pub struct SetupInfo {
|
||||||
#[serde(rename = "product-cfg")]
|
#[serde(rename = "product-cfg")]
|
||||||
pub product_cfg: ProductConfig,
|
pub config: ProductConfig,
|
||||||
#[serde(rename = "iso-info")]
|
#[serde(rename = "iso-info")]
|
||||||
pub iso_info: IsoInfo,
|
pub iso_info: IsoInfo,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user