components/openstack/horizon/files/overrides.py
changeset 1989 ae222899e270
parent 1970 f37782924749
child 1990 c1c6cc703d7a
--- a/components/openstack/horizon/files/overrides.py	Mon Jul 07 14:51:25 2014 -0700
+++ b/components/openstack/horizon/files/overrides.py	Mon Jul 07 20:22:27 2014 -0700
@@ -29,6 +29,9 @@
     DeleteNetwork, NetworksTable
 from openstack_dashboard.dashboards.project.access_and_security.tabs import \
     AccessAndSecurityTabs, APIAccessTab, FloatingIPsTab, KeypairsTab
+from \
+    openstack_dashboard.dashboards.project.images_and_snapshots.images.tables \
+    import EditImage, DeleteImage, ImagesTable, LaunchImage
 from openstack_dashboard.dashboards.project.instances import tables \
     as project_tables
 from openstack_dashboard.dashboards.project.instances.tabs import \
@@ -114,6 +117,10 @@
 CreateSubnetInfoAction.base_fields['no_gateway'].widget.attrs['disabled'] = \
     True
 
+# Remove 'CreateVolumeFromImage' checkbox from
+# Project/Images & Snapshots/Actions
+ImagesTable._meta.row_actions = (LaunchImage, EditImage, DeleteImage,)
+
 # change 'allocation_pools' and 'host_routes' to readonly
 base_fields = CreateSubnetDetailAction.base_fields
 base_fields['allocation_pools'].widget.attrs['readonly'] = 'readonly'