add info about target disk and fs
This commit is contained in:
parent
1b7c826714
commit
d2bc7e6c6b
@ -106,6 +106,9 @@
|
|||||||
"install_confirm_detail_partition_method_type_subtitle_automatic": "Automatic",
|
"install_confirm_detail_partition_method_type_subtitle_automatic": "Automatic",
|
||||||
"install_confirm_detail_partition_method_type_subtitle_manual_luks": "Manual w/ LUKS",
|
"install_confirm_detail_partition_method_type_subtitle_manual_luks": "Manual w/ LUKS",
|
||||||
"install_confirm_detail_partition_method_type_subtitle_manual": "Manual",
|
"install_confirm_detail_partition_method_type_subtitle_manual": "Manual",
|
||||||
|
"install_confirm_detail_partition_method_automatic_target_title": "Automatic Partitioning Target Disk",
|
||||||
|
"install_confirm_detail_partition_method_automatic_target_subtitle": "{DISK} (WILL BE WIPED CLEAN!)",
|
||||||
|
"install_confirm_detail_partition_method_automatic_target_fs_title": "Automatic Partitioning Target Disk Filesystem",
|
||||||
"mounted_on_detail": " mounted on ",
|
"mounted_on_detail": " mounted on ",
|
||||||
"install_target_detail": "Install Target:",
|
"install_target_detail": "Install Target:",
|
||||||
"install_confirm_button_label": "Confirm & Install PikaOS"
|
"install_confirm_button_label": "Confirm & Install PikaOS"
|
||||||
|
@ -82,6 +82,10 @@ pub fn installation_summary_page(
|
|||||||
#[strong]
|
#[strong]
|
||||||
partition_method_automatic_luks_enabled_refcell,
|
partition_method_automatic_luks_enabled_refcell,
|
||||||
#[strong]
|
#[strong]
|
||||||
|
partition_method_automatic_target_fs_refcell,
|
||||||
|
#[strong]
|
||||||
|
partition_method_automatic_target_refcell,
|
||||||
|
#[strong]
|
||||||
partition_method_manual_luks_enabled_refcell,
|
partition_method_manual_luks_enabled_refcell,
|
||||||
move|_, action_arg|
|
move|_, action_arg|
|
||||||
{
|
{
|
||||||
@ -138,6 +142,23 @@ pub fn installation_summary_page(
|
|||||||
.build();
|
.build();
|
||||||
install_confirm_detail_partition_method_type.add_css_class("property");
|
install_confirm_detail_partition_method_type.add_css_class("property");
|
||||||
installation_summary_row_viewport_listbox.append(&install_confirm_detail_partition_method_type);
|
installation_summary_row_viewport_listbox.append(&install_confirm_detail_partition_method_type);
|
||||||
|
//
|
||||||
|
if &*partition_method_type_refcell.borrow().as_str() == "automatic" {
|
||||||
|
let install_confirm_detail_partition_method_automatic_target = adw::ActionRow::builder()
|
||||||
|
.title(t!("install_confirm_detail_partition_method_automatic_target_title"))
|
||||||
|
.subtitle(strfmt::strfmt(&t!("install_confirm_detail_partition_method_automatic_target_subtitle"), &std::collections::HashMap::from([("DISK".to_string(), partition_method_automatic_target_refcell.borrow().as_str())])).unwrap())
|
||||||
|
.build();
|
||||||
|
install_confirm_detail_partition_method_automatic_target.add_css_class("property");
|
||||||
|
installation_summary_row_viewport_listbox.append(&install_confirm_detail_partition_method_automatic_target);
|
||||||
|
//
|
||||||
|
let install_confirm_detail_partition_method_automatic_target_fs = adw::ActionRow::builder()
|
||||||
|
.title(t!("install_confirm_detail_partition_method_automatic_target_fs_title"))
|
||||||
|
.subtitle(partition_method_automatic_target_fs_refcell.borrow().to_uppercase())
|
||||||
|
.build();
|
||||||
|
install_confirm_detail_partition_method_automatic_target_fs.add_css_class("property");
|
||||||
|
installation_summary_row_viewport_listbox.append(&install_confirm_detail_partition_method_automatic_target_fs);
|
||||||
|
//
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user