Show all grid actions by default, if there are 3 or less
This commit is contained in:
parent
63e336d4bb
commit
c038d74302
|
@ -1254,6 +1254,8 @@ class MasterView(View):
|
||||||
main, more = self.get_main_actions(), self.get_more_actions()
|
main, more = self.get_main_actions(), self.get_more_actions()
|
||||||
if len(more) == 1:
|
if len(more) == 1:
|
||||||
main, more = main + more, []
|
main, more = main + more, []
|
||||||
|
if len(main + more) <= 3:
|
||||||
|
main, more = main + more, []
|
||||||
return main, more
|
return main, more
|
||||||
|
|
||||||
def get_row_attrs(self, row, i):
|
def get_row_attrs(self, row, i):
|
||||||
|
|
Loading…
Reference in a new issue