8000 Don't display AWB in the AppStore + minor unrelated fixes by danielhollas · Pull Request #247 · aiidalab/aiidalab-home · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion home/app_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class AppManagerWidget(ipw.VBox):
Reasons for incompatibility:
<ul>
{% for spec in app.compatibility_info %}
<li>{{ spec }}:
<li>{{ app.name }} v{{ spec }}:
<ul>
{% for missing_req in app.compatibility_info[spec] %}
<li>missing: {{ missing_req }}</li>
Expand Down
14 changes: 10 additions & 4 deletions home/app_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def __init__(self):

# Apps per page.
self.items_per_page = ipw.BoundedIntText(
value=10,
value=20,
min=5,
max=40,
max=100,
step=5,
description="Apps per page:",
disabled=False,
Expand Down Expand Up @@ -146,8 +146,14 @@ def render(self, _=None):
end = (page + 1) * self.items_per_page.value
with self.output:
for number, app_base in enumerate(self.apps_to_display[start:end]):
if app_base.name == "home":
continue # Disable management of home app through UI.
# Disable management of home app through UI.
# Remove aiidalab-widgets-base from the list,
# it is no longer installable as an App
if (
app_base.name == "home"
or app_base.name.replace("_", "-") == "aiidalab-widgets-base"
):
continue

if (
self.category_filter.value
Expand Down
Loading
0