upstream/openstack
Enzo Candotti feb152c085 Fix incomplete pop-up message on delete Action
When an Action table is created with a 'danger' action_type and a
single handler method for a single object, the 'selection' and
'help' parameters are empty. This causes the pop-up message to be
incomplete. For example:

"You have selected: . Please confirm your selection. "

This patch fixes this behaviour by displaying the message with
the selected objects only when one or more objects are selected.
Otherwise, it only asks for confirmation.

Closes-Bug: 2000799

Test Plan:
PASS: Build python3-django-horizon package including these changes.
PASS: Test the behaviour for single delete actions. For example:
Create a patch strategy and press the "Delete" action. Verify
the following message is displayed in the pop-up message:
"Please confirm your selection. This action cannot be undone."

PASS: Test the behaviour for multiple delete actions. For example:
Upload more than one patch, select them and click on the 'Delete'
action. Verify the following message is displayed:
You have selected: "22.12_NRR_INSVC", "22.12_RESTART_FAILURE_INSVC".
Please confirm your selection. This action cannot be undone.

Signed-off-by: Enzo Candotti <enzo.candotti@windriver.com>
Change-Id: I85bc5c8155466e14a1a5fa84d54ed22032437f88
2023-01-02 20:04:36 +00:00
..
barbican/debian Added patch to store barbican data in ascii format in DB 2022-05-24 14:02:26 -04:00
cinder_conf_dummy StarlingX open source release updates 2018-05-31 07:37:19 -07:00
keystone/debian Add support to keystone to store users in keyring on Debian 2022-04-09 16:03:20 +00:00
openstack-aodh/centos Setting PYTHON3=no for LOCI images 2022-01-24 22:26:35 +00:00
openstack-ironic/centos Setting PYTHON3=no for LOCI images 2022-01-24 22:26:35 +00:00
openstack-os-vif/centos Add auto-version for remaining stx/upstream packages 2020-12-17 13:21:18 -05:00
openstack-pkg-tools/debian Added patch to support ipv6 on keystone 2022-04-13 16:41:09 +00:00
openstack-ras Add packaging directory for openstack-resource-agents 2021-11-05 17:16:26 +00:00
python-aodhclient Add Debian packaging infra for python-aodhclient 2021-11-08 10:52:05 -05:00
python-barbican/centos Setting PYTHON3=no for LOCI images 2022-01-24 22:26:35 +00:00
python-barbicanclient Python various packages: change dl_name to dl_path 2021-12-21 09:49:51 +08:00
python-ceilometer/centos Setting PYTHON3=no for LOCI images 2022-01-24 22:26:35 +00:00
python-cinder/centos Setting PYTHON3=no for LOCI images 2022-01-24 22:26:35 +00:00
python-cinderclient Python various packages: change dl_name to dl_path 2021-12-21 09:49:51 +08:00
python-glance/centos Setting PYTHON3=no for LOCI images 2022-01-24 22:26:35 +00:00
python-glanceclient Add Debian packaging infra for python-glanceclient 2021-11-08 10:28:07 -05:00
python-gnocchi/centos Setting PYTHON3=no for LOCI images 2022-01-24 22:26:35 +00:00
python-gnocchiclient python-gnocchiclient build fix 2022-08-02 15:16:35 -04:00
python-heat/openstack-heat/centos Setting PYTHON3=no for LOCI images 2022-01-24 22:26:35 +00:00
python-heatclient debian: Fix cyclic depends 2021-11-29 20:27:57 -05:00
python-horizon Fix incomplete pop-up message on delete Action 2023-01-02 20:04:36 +00:00
python-ironicclient Python various packages: change dl_name to dl_path 2021-12-21 09:49:51 +08:00
python-keystone/centos Add flake8-import-order and use python3.9 on tox 2022-06-22 21:59:14 +00:00
python-keystoneauth1/centos [PATCH 01/16] stx-upstream: upgrade keystoneauth1 to Train. 2020-04-02 06:08:59 +00:00
python-keystoneclient Add Debian infra for python-keystoneclient 2021-11-08 09:55:46 -05:00
python-neutron/centos Setting PYTHON3=no for LOCI images 2022-01-24 22:26:35 +00:00
python-neutronclient debian: Fix cyclic depends 2021-11-29 20:27:57 -05:00
python-nova/centos Setting PYTHON3=no for LOCI images 2022-01-24 22:26:35 +00:00
python-novaclient Add debian package infra for python-novaclient 2021-11-08 10:21:52 -05:00
python-openstackclient debian: Allow runtime openstack completion 2022-06-03 12:21:25 +03:00
python-openstackdocstheme/centos Add auto-version for remaining stx/upstream packages 2020-12-17 13:21:18 -05:00
python-openstacksdk Add Debian packaging infra for python-openstacksdk 2021-11-05 14:36:20 -04:00
python-osc-lib Add debian packaging for python-osc-lib 2021-11-09 16:07:58 -03:00
python-oslo-messaging Add debian packaging for python-oslo-messaging 2021-11-09 16:02:44 -03:00
python-pankoclient debian: Fix cyclic depends 2021-11-29 20:27:57 -05:00
python-placement First update on image customization 2022-06-14 12:08:10 -03:00
python-platformclients Update stx-platformclients debian image 2022-11-11 17:25:05 +00:00
python-wsme Add debian packaging for python-wsme 2021-11-09 16:05:51 -03:00
rabbitmq-server Add debian packaging dir for rabbitmq-server 2021-10-15 19:43:24 -03:00