From 19930c27feb95ec226f234e2f276ad88e953b079 Mon Sep 17 00:00:00 2001 From: joegl <20383-joegl@users.noreply.drupalcode.org> Date: Fri, 25 Oct 2024 15:34:10 -0500 Subject: [PATCH] Add confirmation step to bulk deletion action. --- .../config/sync/views.view.content.yml | 23 ++--- .../views.view.sdss_manage_content_bytype.yml | 86 +++++++++++-------- 2 files changed, 62 insertions(+), 47 deletions(-) diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/views.view.content.yml b/docroot/profiles/sdss/sdss_profile/config/sync/views.view.content.yml index 093da88e7..f8e600186 100644 --- a/docroot/profiles/sdss/sdss_profile/config/sync/views.view.content.yml +++ b/docroot/profiles/sdss/sdss_profile/config/sync/views.view.content.yml @@ -80,31 +80,34 @@ display: clear_on_exposed: true force_selection_info: false selected_actions: - 5: - action_id: node_assign_owner_action - preconfiguration: - add_confirmation: false - 7: + - action_id: node_clone_action preconfiguration: add_confirmation: false - 8: + message_override: '' + - action_id: views_bulk_edit preconfiguration: add_confirmation: false + message_override: '' get_bundles_from_results: true - 9: + - action_id: views_bulk_operations_delete_entity - 11: + preconfiguration: + add_confirmation: true + message_override: '' + - action_id: 'entity:unpublish_action:node' preconfiguration: add_confirmation: false label_override: Unpublish - 12: + message_override: '' + - action_id: 'entity:publish_action:node' preconfiguration: add_confirmation: false label_override: Publish + message_override: '' title: id: title table: node_field_data @@ -315,13 +318,13 @@ display: pager: type: full options: + pagination_heading_level: h4 items_per_page: 50 tags: next: 'Next ›' previous: '‹ Previous' first: '« First' last: 'Last »' - pagination_heading_level: h4 exposed_form: type: basic options: diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/views.view.sdss_manage_content_bytype.yml b/docroot/profiles/sdss/sdss_profile/config/sync/views.view.sdss_manage_content_bytype.yml index 66ae8b0c0..a3028ba95 100644 --- a/docroot/profiles/sdss/sdss_profile/config/sync/views.view.sdss_manage_content_bytype.yml +++ b/docroot/profiles/sdss/sdss_profile/config/sync/views.view.sdss_manage_content_bytype.yml @@ -276,13 +276,13 @@ display: pager: type: full options: + pagination_heading_level: h4 items_per_page: 50 tags: next: 'Next ›' previous: '‹ Previous' first: '« First' last: 'Last »' - pagination_heading_level: h4 exposed_form: type: basic options: @@ -700,31 +700,34 @@ display: clear_on_exposed: true force_selection_info: false selected_actions: - 5: - action_id: node_assign_owner_action - preconfiguration: - add_confirmation: false - 7: + - action_id: node_clone_action preconfiguration: add_confirmation: false - 8: + message_override: '' + - action_id: views_bulk_edit preconfiguration: add_confirmation: false + message_override: '' get_bundles_from_results: true - 9: + - action_id: views_bulk_operations_delete_entity - 11: + preconfiguration: + add_confirmation: true + message_override: '' + - action_id: 'entity:unpublish_action:node' preconfiguration: add_confirmation: false label_override: Unpublish - 12: + message_override: '' + - action_id: 'entity:publish_action:node' preconfiguration: add_confirmation: false label_override: Publish + message_override: '' title: id: title table: node_field_data @@ -1114,31 +1117,34 @@ display: clear_on_exposed: true force_selection_info: false selected_actions: - 5: - action_id: node_assign_owner_action - preconfiguration: - add_confirmation: false - 7: + - action_id: node_clone_action preconfiguration: add_confirmation: false - 8: + message_override: '' + - action_id: views_bulk_edit preconfiguration: add_confirmation: false + message_override: '' get_bundles_from_results: true - 9: + - action_id: views_bulk_operations_delete_entity - 11: + preconfiguration: + add_confirmation: true + message_override: '' + - action_id: 'entity:unpublish_action:node' preconfiguration: add_confirmation: false label_override: Unpublish - 12: + message_override: '' + - action_id: 'entity:publish_action:node' preconfiguration: add_confirmation: false label_override: Publish + message_override: '' title: id: title table: node_field_data @@ -1985,31 +1991,34 @@ display: clear_on_exposed: true force_selection_info: false selected_actions: - 5: - action_id: node_assign_owner_action - preconfiguration: - add_confirmation: false - 7: + - action_id: node_clone_action preconfiguration: add_confirmation: false - 8: + message_override: '' + - action_id: views_bulk_edit preconfiguration: add_confirmation: false + message_override: '' get_bundles_from_results: true - 9: + - action_id: views_bulk_operations_delete_entity - 11: + preconfiguration: + add_confirmation: true + message_override: '' + - action_id: 'entity:unpublish_action:node' preconfiguration: add_confirmation: false label_override: Unpublish - 12: + message_override: '' + - action_id: 'entity:publish_action:node' preconfiguration: add_confirmation: false label_override: Publish + message_override: '' title: id: title table: node_field_data @@ -2786,31 +2795,34 @@ display: clear_on_exposed: true force_selection_info: false selected_actions: - 5: - action_id: node_assign_owner_action - preconfiguration: - add_confirmation: false - 7: + - action_id: node_clone_action preconfiguration: add_confirmation: false - 8: + message_override: '' + - action_id: views_bulk_edit preconfiguration: add_confirmation: false + message_override: '' get_bundles_from_results: true - 9: + - action_id: views_bulk_operations_delete_entity - 11: + preconfiguration: + add_confirmation: true + message_override: '' + - action_id: 'entity:unpublish_action:node' preconfiguration: add_confirmation: false label_override: Unpublish - 12: + message_override: '' + - action_id: 'entity:publish_action:node' preconfiguration: add_confirmation: false label_override: Publish + message_override: '' title: id: title table: node_field_data