Made Create Snapshot load in modal.

* fixes bug 944498

Change-Id: I0274c715117af97521a610ae0e639418dd9bb13b
This commit is contained in:
Emma Steimann 2012-03-02 15:48:17 -06:00
parent c16ba74d9f
commit 7423d110fc

View File

@ -59,6 +59,7 @@ class CreateSnapshot(tables.LinkAction):
name = "snapshots"
verbose_name = _("Create Snapshot")
url = "horizon:nova:instances_and_volumes:volumes:create_snapshot"
attrs = {"class": "ajax-modal"}
def allowed(self, request, volume=None):
return volume.status in ("available",)