Add table_actions_menu for Environments Table

Now there are too many actions for the Environments table,
we can use table_actions_menu fuction to add some of the actions to the
More Actions menu, this can reduce the lenth of the table actions.

Change-Id: If1dd94f737f2e893e5d40492b1f8a65d5fc81d36
This commit is contained in:
zhurong 2017-07-09 21:25:00 +08:00
parent 0f21fc1fba
commit c5a7fa2f4f
1 changed files with 3 additions and 2 deletions

View File

@ -521,9 +521,10 @@ class EnvironmentsTable(tables.DataTable):
row_class = UpdateEnvironmentRow
status_columns = ['status']
no_data_message = _('NO ENVIRONMENTS')
table_actions_menu = (AbandonEnvironment,
DeploymentHistory)
table_actions = (CreateEnvironment, DeployEnvironment,
DeleteEnvironment, AbandonEnvironment,
DeploymentHistory)
DeleteEnvironment)
row_actions = (ShowEnvironmentServices, DeployEnvironment,
DeleteEnvironment, AbandonEnvironment,
UpdateEnvMetadata)