From 83fd44d6250108e90e1f26ceffef2391bd1dbeb9 Mon Sep 17 00:00:00 2001 From: Snihyr Kostyantyn Date: Mon, 15 Aug 2016 19:42:58 +0300 Subject: [PATCH] Honor title of Action in murano dashboard Title of action can be declared via io.murano.metadata.Title:text metadata. If metadata not attached to Public method, Action name used as Action.title, this commit backward compatible. Change-Id: Ie79898678e9d0b677ffe7e530221591bb8aa2143 Partially-implements: blueprint muranopl-forms --- muranodashboard/environments/tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/muranodashboard/environments/tables.py b/muranodashboard/environments/tables.py index c62be808e..e8eb83dab 100644 --- a/muranodashboard/environments/tables.py +++ b/muranodashboard/environments/tables.py @@ -515,7 +515,7 @@ class ServicesTable(tables.DataTable): class CustomAction(tables.LinkAction): name = action_datum['name'] - verbose_name = action_datum['name'] + verbose_name = action_datum.get('title') or name url = reverse('horizon:murano:environments:start_action', args=(environment_id, action_datum['id'])) classes = _classes