diff options
| author | Richard Jones <r1chardj0n3s@gmail.com> | 2017-02-09 12:57:36 +1100 |
|---|---|---|
| committer | Richard Jones <r1chardj0n3s@gmail.com> | 2017-02-28 14:05:26 +1100 |
| commit | 97589ec0fbb11b4797b9621941b06368e65e4c2e (patch) | |
| tree | 5d30af347f6bc02566ac99e258ebea4bbddb0198 /openstack_dashboard/enabled | |
| parent | 5679634fed5be88a566a58c87c1f7c67b185e19e (diff) | |
| download | horizon-97589ec0fbb11b4797b9621941b06368e65e4c2e.tar.gz | |
Move Volume snapshots out of tabbed panel
In doing this I found that the permission check on the
project Volume Snapshots table was incorrectly defined,
resulting in always-denied. Removing a level of nesting
in the permission structure fixed it.
Change-Id: I1bc5bd4820700d29861ec1dcd6c87a41b5230266
Implements: blueprint reorganise-volumes
Diffstat (limited to 'openstack_dashboard/enabled')
| -rw-r--r-- | openstack_dashboard/enabled/_1310_volumes_panel_group.py | 8 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_1330_project_snapshots_panel.py | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/openstack_dashboard/enabled/_1310_volumes_panel_group.py b/openstack_dashboard/enabled/_1310_volumes_panel_group.py new file mode 100644 index 000000000..0c234ec1f --- /dev/null +++ b/openstack_dashboard/enabled/_1310_volumes_panel_group.py @@ -0,0 +1,8 @@ +from django.utils.translation import ugettext_lazy as _ + +# The slug of the panel group to be added to HORIZON_CONFIG. Required. +PANEL_GROUP = 'volumes' +# The display name of the PANEL_GROUP. Required. +PANEL_GROUP_NAME = _('Volumes') +# The slug of the dashboard the PANEL_GROUP associated with. Required. +PANEL_GROUP_DASHBOARD = 'project' diff --git a/openstack_dashboard/enabled/_1330_project_snapshots_panel.py b/openstack_dashboard/enabled/_1330_project_snapshots_panel.py new file mode 100644 index 000000000..7f150d0ab --- /dev/null +++ b/openstack_dashboard/enabled/_1330_project_snapshots_panel.py @@ -0,0 +1,9 @@ +# The slug of the panel to be added to HORIZON_CONFIG. Required. +PANEL = 'snapshots' +# The slug of the dashboard the PANEL associated with. Required. +PANEL_DASHBOARD = 'project' +# The slug of the panel group the PANEL is associated with. +PANEL_GROUP = 'volumes' + +# Python panel class of the PANEL to be added. +ADD_PANEL = 'openstack_dashboard.dashboards.project.snapshots.panel.Snapshots' |
