diff --git a/horizon/templates/horizon/common/_data_table_action.html b/horizon/templates/horizon/common/_data_table_action.html index c855f1895a..83d3763fe5 100644 --- a/horizon/templates/horizon/common/_data_table_action.html +++ b/horizon/templates/horizon/common/_data_table_action.html @@ -32,7 +32,11 @@ {% else %} diff --git a/openstack_dashboard/dashboards/admin/instances/tables.py b/openstack_dashboard/dashboards/admin/instances/tables.py index 8dbf50f06d..ecdcba973b 100644 --- a/openstack_dashboard/dashboards/admin/instances/tables.py +++ b/openstack_dashboard/dashboards/admin/instances/tables.py @@ -80,7 +80,6 @@ class LiveMigrateInstance(policy.PolicyTargetMixin, classes = ("ajax-modal", "btn-migrate") policy_rules = ( ("compute", "os_compute_api:os-migrate-server:migrate_live"),) - action_type = "danger" def allowed(self, request, instance): return ((instance.status in project_tables.ACTIVE_STATES) diff --git a/openstack_dashboard/dashboards/project/instances/tables.py b/openstack_dashboard/dashboards/project/instances/tables.py index f2bf1eebb8..01fe50a43a 100644 --- a/openstack_dashboard/dashboards/project/instances/tables.py +++ b/openstack_dashboard/dashboards/project/instances/tables.py @@ -536,6 +536,7 @@ class ResizeLink(policy.PolicyTargetMixin, tables.LinkAction): url = "horizon:project:instances:resize" classes = ("ajax-modal", "btn-resize") policy_rules = (("compute", "os_compute_api:servers:resize"),) + action_type = "danger" def get_link_url(self, project): return self._get_link_url(project, 'flavor_choice') @@ -586,6 +587,7 @@ class RebuildInstance(policy.PolicyTargetMixin, tables.LinkAction): classes = ("btn-rebuild", "ajax-modal") url = "horizon:project:instances:rebuild" policy_rules = (("compute", "os_compute_api:servers:rebuild"),) + action_type = "danger" def allowed(self, request, instance): return ((instance.status in ACTIVE_STATES