Skip to content

Commit

Permalink
Fix bug where disabled modules don't appear in the module list. (#134)
Browse files Browse the repository at this point in the history
* Fix bug where disabled modules don't appear in the module list.

* Update changelog.
  • Loading branch information
bdice authored May 18, 2022
1 parent ac20abd commit 598082d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Fixed
+++++

- Hide the list and grid view buttons when viewing a single job (#92, #110).
- Fixed bug with disabled modules not showing a checkbox to enable them in the grid view (#134).

Version 0.2
===========
Expand Down
2 changes: 1 addition & 1 deletion signac_dashboard/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def keyfunc(module):
grouped = groupby(sorted(self.modules, key=keyfunc), key=keyfunc)
modules_by_context = {}
for context_key, context_group in grouped:
modules_by_context[context_key] = [m for m in context_group if m.enabled]
modules_by_context[context_key] = [m for m in context_group]
self._modules_by_context = modules_by_context

def _create_app(self, config={}):
Expand Down

0 comments on commit 598082d

Please sign in to comment.