Heat stack status column improvement
Status column on stack table is using 'status' instead of 'stack_status' to keep Horizon from listing all of the various Heat states and from incorrect displaying progress meters for several of them. However 'stack_status' is more detailed and more useful for user. This patch set adds 'stack_status' column for detailed status and keeps 'status' column hidden for correct displaying. Partially implements blueprint: heat-ui-improvement Change-Id: Iacf5e9819aaedc508aa19bb2442030c0572e8c1a
This commit is contained in:
parent
d53c662a79
commit
07692894d9
|
@ -188,11 +188,14 @@ class StacksTable(tables.DataTable):
|
|||
filters=(filters.parse_isotime,
|
||||
filters.timesince_or_never))
|
||||
status = tables.Column("status",
|
||||
filters=(title, filters.replace_underscores),
|
||||
verbose_name=_("Status"),
|
||||
hidden=True,
|
||||
status=True,
|
||||
status_choices=STATUS_CHOICES)
|
||||
|
||||
stack_status = tables.Column("stack_status",
|
||||
filters=(title, filters.replace_underscores),
|
||||
verbose_name=_("Status"))
|
||||
|
||||
def get_object_display(self, stack):
|
||||
return stack.stack_name
|
||||
|
||||
|
|
Loading…
Reference in New Issue