From e8d2260c93025c8d4ea1de8f0bdeffaac7cdaeba Mon Sep 17 00:00:00 2001 From: Dmitriy Chubinidze Date: Sun, 8 Jun 2025 22:02:59 +0000 Subject: [PATCH] Correct "Update Defaults" button Due to renaming 'Defaults" page to "Default Quotas" makes more sense to replace "Update Defaults" to corresponding name. Change-Id: I51edfee68c2a24752d41dcb558ce6f0ec19dde09 --- doc/source/admin/set-quotas.rst | 4 ++-- openstack_dashboard/dashboards/admin/defaults/tables.py | 2 +- openstack_dashboard/dashboards/admin/defaults/workflows.py | 2 +- .../test/selenium/integration/test_defaults.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/source/admin/set-quotas.rst b/doc/source/admin/set-quotas.rst index def9d788e3..055f6734a2 100644 --- a/doc/source/admin/set-quotas.rst +++ b/doc/source/admin/set-quotas.rst @@ -107,12 +107,12 @@ Update project quotas #. On the :guilabel:`Admin` tab, open the :guilabel:`System` tab and click the :guilabel:`Default Quotas` category. -#. Click the :guilabel:`Update Defaults` button. +#. Click the :guilabel:`Update Default Quotas` button. #. In the :guilabel:`Update Default Quotas` window, you can edit the default quota values. -#. Click the :guilabel:`Update Defaults` button. +#. Click the :guilabel:`Update Default Quotas` button. .. note:: diff --git a/openstack_dashboard/dashboards/admin/defaults/tables.py b/openstack_dashboard/dashboards/admin/defaults/tables.py index 17907d802e..570f36ee1e 100644 --- a/openstack_dashboard/dashboards/admin/defaults/tables.py +++ b/openstack_dashboard/dashboards/admin/defaults/tables.py @@ -35,7 +35,7 @@ class QuotaFilterAction(tables.FilterAction): class UpdateDefaultQuotas(tables.LinkAction): name = "update_defaults" - verbose_name = _("Update Defaults") + verbose_name = _("Update Default Quotas") url = "horizon:admin:defaults:update_defaults" classes = ("ajax-modal",) icon = "pencil" diff --git a/openstack_dashboard/dashboards/admin/defaults/workflows.py b/openstack_dashboard/dashboards/admin/defaults/workflows.py index 1354eb44ed..dab0f808fb 100644 --- a/openstack_dashboard/dashboards/admin/defaults/workflows.py +++ b/openstack_dashboard/dashboards/admin/defaults/workflows.py @@ -153,7 +153,7 @@ class UpdateDefaultVolumeQuotasStep(workflows.Step): class UpdateDefaultQuotas(workflows.Workflow): slug = "update_default_quotas" name = _("Update Default Quotas") - finalize_button_name = _("Update Defaults") + finalize_button_name = _("Update Default Quotas") success_message = _('Default quotas updated.') failure_message = _('Unable to update default quotas.') success_url = "horizon:admin:defaults:index" diff --git a/openstack_dashboard/test/selenium/integration/test_defaults.py b/openstack_dashboard/test/selenium/integration/test_defaults.py index 99ee0ca942..dccd3c22e6 100644 --- a/openstack_dashboard/test/selenium/integration/test_defaults.py +++ b/openstack_dashboard/test/selenium/integration/test_defaults.py @@ -56,7 +56,7 @@ def test_update_compute_defaults(login, driver, openstack_admin, config, 'defaults', )) driver.get(url) - driver.find_element_by_link_text("Update Defaults").click() + driver.find_element_by_link_text("Update Default Quotas").click() defaults_form = driver.find_element_by_css_selector("form .modal-content") defaults_form.find_element_by_id("id_instances").clear() defaults_form.find_element_by_id("id_instances").send_keys( @@ -85,7 +85,7 @@ def test_update_volume_defaults(login, driver, openstack_admin, config, )) driver.get(url) driver.find_element_by_link_text("Volume Quotas").click() - driver.find_element_by_link_text("Update Defaults").click() + driver.find_element_by_link_text("Update Default Quotas").click() defaults_form = driver.find_element_by_css_selector("form .modal-content") defaults_form.find_element_by_id("id_volumes").clear() defaults_form.find_element_by_id("id_volumes").send_keys(number_of_volumes)