Skip to content

Commit

Permalink
fix: "sample dataset"-button always disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
iisakkirotko authored and maartenbreddels committed Sep 6, 2023
1 parent c017423 commit 348ab5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion solara/website/pages/api/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def Page():
The sidebar can only be shown in embedded mode on this page.
Visit the [Scatter app demo](/apps/scatter) to see an example of a full sidebar used in Soalra server.
[![AppLayout screenshot](/static/public/docs/app-layout.png)](/app/scatter)
[![AppLayout screenshot](/static/public/docs/app-layout.png)](/apps/scatter)
"""
)

Expand Down
2 changes: 1 addition & 1 deletion solara/website/pages/apps/scatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def filter_df():
with solara.Card("Controls", margin=0, elevation=0):
with solara.Column():
with solara.Row():
solara.Button("Sample dataset", color="primary", text=True, outlined=True, on_click=State.load_sample, disabled=df is None)
solara.Button("Sample dataset", color="primary", text=True, outlined=True, on_click=State.load_sample, disabled=df is not None)
solara.Button("Clear dataset", color="primary", text=True, outlined=True, on_click=State.reset)
FileDrop(on_file=State.load_from_file, on_total_progress=lambda *args: None, label="Drag file here")

Expand Down

0 comments on commit 348ab5a

Please sign in to comment.