From ee2a0100f638bdc8dfaef884e921a7c0594c3a46 Mon Sep 17 00:00:00 2001 From: shuki Date: Wed, 4 Mar 2026 19:45:43 +0200 Subject: [PATCH] Remove Restore Strategy toggle from restore page Always defaults to merge (overwrite) strategy. The terminate & re-create option is removed from the UI to simplify the restore workflow. Co-Authored-By: Claude Opus 4.6 --- whm/gniza-whm/restore.cgi | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/whm/gniza-whm/restore.cgi b/whm/gniza-whm/restore.cgi index b349892..27b4143 100644 --- a/whm/gniza-whm/restore.cgi +++ b/whm/gniza-whm/restore.cgi @@ -247,15 +247,6 @@ sub handle_step2 { print qq{ \n}; print qq{\n}; - # Restore strategy (visible only for Full Account mode) - print qq{
\n}; - print qq{ \n}; - print qq{
\n}; - print qq{ \n}; - print qq{ \n}; - print qq{
\n}; - print qq{
\n}; - # Exclude paths (visible in both Full Account and Selective modes) print qq{
\n}; print qq{
\n}; @@ -452,7 +443,6 @@ function gnizaModeChanged() { var mode = document.querySelector('input[name="restore_mode"]:checked').value; var selective = mode === 'selective'; document.getElementById('selective-panel').hidden = !selective; - document.getElementById('strategy-panel').hidden = selective; document.getElementById('type_account_hidden').disabled = selective; if (selective) { gnizaTypesChanged(); @@ -897,12 +887,6 @@ sub handle_step3 { print qq{Snapshot$esc_timestamp\n}; print qq{Restore Types$types_display\n}; - if (grep { $_ eq 'account' } @selected_types) { - my %strategy_labels = (merge => 'Overwrite (merge)', terminate => 'Terminate & re-create'); - my $strategy_display = GnizaWHM::UI::esc($strategy_labels{$strategy} // $strategy); - print qq{Strategy$strategy_display\n}; - } - # Show sub-field details for applicable types if (grep { $_ eq 'files' } @selected_types) { my $path_display = $path ne '' ? GnizaWHM::UI::esc($path) : 'All files'; @@ -952,7 +936,6 @@ sub handle_step3 { print qq{\n}; print qq{\n}; print qq{\n}; - print qq{\n}; print qq{\n}; print GnizaWHM::UI::csrf_hidden_field();