Fixed name of snaphot button.
Fixes bug 1018370. Change-Id: I66aae280ee6633a3fae58f314c0eb77b2f150003
This commit is contained in:
parent
6b3545ef70
commit
7560824304
@ -157,9 +157,9 @@ class EditInstance(tables.LinkAction):
|
||||
classes = ("ajax-modal", "btn-edit")
|
||||
|
||||
|
||||
class SnapshotLink(tables.LinkAction):
|
||||
class CreateSnapshot(tables.LinkAction):
|
||||
name = "snapshot"
|
||||
verbose_name = _("Snapshot")
|
||||
verbose_name = _("Create Snapshot")
|
||||
url = "horizon:nova:images_and_snapshots:snapshots:create"
|
||||
classes = ("ajax-modal", "btn-camera")
|
||||
|
||||
@ -293,6 +293,6 @@ class InstancesTable(tables.DataTable):
|
||||
status_columns = ["status", "task"]
|
||||
row_class = UpdateRow
|
||||
table_actions = (LaunchLink, TerminateInstance)
|
||||
row_actions = (SnapshotLink, AssociateIP, EditInstance, ConsoleLink,
|
||||
row_actions = (CreateSnapshot, AssociateIP, EditInstance, ConsoleLink,
|
||||
LogLink, TogglePause, ToggleSuspend, RebootInstance,
|
||||
TerminateInstance)
|
||||
|
@ -23,7 +23,7 @@ from django.utils.translation import ugettext_lazy as _
|
||||
from horizon import api
|
||||
from horizon import tables
|
||||
from horizon.dashboards.nova.instances.tables import (TerminateInstance,
|
||||
EditInstance, ConsoleLink, LogLink, SnapshotLink,
|
||||
EditInstance, ConsoleLink, LogLink, CreateSnapshot,
|
||||
TogglePause, ToggleSuspend, RebootInstance, get_size, UpdateRow,
|
||||
LaunchLink, get_ips, get_power_state)
|
||||
from horizon.utils.filters import replace_underscores
|
||||
@ -97,6 +97,6 @@ class SyspanelInstancesTable(tables.DataTable):
|
||||
status_columns = ["status", "task"]
|
||||
table_actions = (AdminLaunchLink, TerminateInstance,)
|
||||
row_class = AdminUpdateRow
|
||||
row_actions = (EditInstance, ConsoleLink, LogLink, SnapshotLink,
|
||||
row_actions = (EditInstance, ConsoleLink, LogLink, CreateSnapshot,
|
||||
TogglePause, ToggleSuspend, RebootInstance,
|
||||
TerminateInstance)
|
||||
|
Loading…
Reference in New Issue
Block a user