From c038d74302554e7678917de9afbb0b68877009b1 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 17 Aug 2017 17:25:18 -0500 Subject: [PATCH] Show all grid actions by default, if there are 3 or less --- tailbone/views/master.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tailbone/views/master.py b/tailbone/views/master.py index c06f1e70..3f817d4e 100644 --- a/tailbone/views/master.py +++ b/tailbone/views/master.py @@ -1254,6 +1254,8 @@ class MasterView(View): main, more = self.get_main_actions(), self.get_more_actions() if len(more) == 1: main, more = main + more, [] + if len(main + more) <= 3: + main, more = main + more, [] return main, more def get_row_attrs(self, row, i):