From 69a1cc31176ce33678106be676ce6d8660c4a747 Mon Sep 17 00:00:00 2001 From: "wei.ying" Date: Sat, 1 Apr 2017 19:24:10 +0800 Subject: [PATCH] Correct the admin snapshot detail row actions are inconsistent with the table An availabe snapshot has three row actions in admin snapshots table, but four row actions in its detail page. This inconsistency seems to be due to the admin snapshot table inheriting the project. Change-Id: I33e5d5c1e78d714f6792c5c23538f7f015d30b3c Closes-Bug: #1678462 --- openstack_dashboard/dashboards/admin/snapshots/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openstack_dashboard/dashboards/admin/snapshots/views.py b/openstack_dashboard/dashboards/admin/snapshots/views.py index de0852ffde..330dc88f83 100644 --- a/openstack_dashboard/dashboards/admin/snapshots/views.py +++ b/openstack_dashboard/dashboards/admin/snapshots/views.py @@ -122,7 +122,9 @@ class DetailView(views.DetailView): snapshot = self.get_data() snapshot.volume_url = reverse(self.volume_url, args=(snapshot.volume_id,)) + table = vol_snapshot_tables.VolumeSnapshotsTable(self.request) context["snapshot"] = snapshot + context["actions"] = table.render_row_actions(snapshot) return context @staticmethod