Fix logic around showing search box

It was looking at the count of items at the root level (because it was
passing `parent_folder_id=None` as an argument).

This changes it to look at the total count of items for a service (which
was the intended behaviour).
This commit is contained in:
Chris Hill-Scott
2018-11-20 16:12:50 +00:00
parent 8f2547b7a7
commit 5d13c639b1
2 changed files with 29 additions and 1 deletions
+1 -1
View File
@@ -369,7 +369,7 @@ class Service():
@property
def count_of_templates_and_folders(self):
return len(self.get_template_folders_and_templates('all', None))
return len(self.all_templates + self.all_template_folders)
def move_to_folder(self, ids_to_move, move_to):