Skip to content

Commit

Permalink
Do not show updates available for now
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed May 22, 2024
1 parent 8fe6319 commit 1e769c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jupyterlab_gallery/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def prepare_exhibit(exhibit_config, exhibit_id: int) -> dict:
# a summary of the commits available, or tags available; possibly the name
# of the most recent tag and would be sufficient over sending the list of commits,
# which can be long and delay the initialization.
exposed_config["updatesAvailable"] = True
exposed_config["updatesAvailable"] = False
exposed_config["isCloned"] = local_path.exists()
exposed_config["newestTag"] = "v3.2.5"
exposed_config["updates"] = [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jupyterlab-gallery",
"version": "0.1.0",
"version": "0.1.1",
"description": "A JupyterLab gallery extension for presenting and downloading examples from remote repositories",
"keywords": [
"jupyter",
Expand Down
4 changes: 3 additions & 1 deletion src/gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ function Exhibit(props: {
Open
</Button>
)}
{exhibit.updatesAvailable ? <Button>Update</Button> : null}
{exhibit.isCloned && exhibit.updatesAvailable ? (
<Button>Update</Button>
) : null}
</div>
</div>
);
Expand Down

0 comments on commit 1e769c2

Please sign in to comment.