From c5a7fa2f4f482324e92f99625a7c5a9dea11bc47 Mon Sep 17 00:00:00 2001 From: zhurong Date: Sun, 9 Jul 2017 21:25:00 +0800 Subject: [PATCH] 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 --- muranodashboard/environments/tables.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/muranodashboard/environments/tables.py b/muranodashboard/environments/tables.py index fa457e819..0c2ac2a58 100644 --- a/muranodashboard/environments/tables.py +++ b/muranodashboard/environments/tables.py @@ -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)