Skip to content

Commit

Permalink
Re-introduced RowActions model.
Browse files Browse the repository at this point in the history
  • Loading branch information
lauri-codes committed Oct 16, 2024
1 parent 19c020d commit 685f9de
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions src/nomad_aitoolkit/apps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
Format,
Layout,
ModeEnum,
RowActions,
RowActionURL,
RowDetails,
Rows,
RowSelection,
ScaleEnum,
WidgetTerms,
)
Expand Down Expand Up @@ -124,20 +123,20 @@
]
),
rows=Rows(
actions=[
RowActionURL(
path=f"data.references[?kind=='hub'].uri#{schema_name}",
description='Launch Jupyter notebook',
icon='launch',
),
RowActionURL(
path=f"data.references[?kind=='repository'].uri#{schema_name}",
description='Go to notebook repository',
icon='github',
)
],
details=RowDetails(enabled=True),
selection=RowSelection(enabled=True),
actions=RowActions(
items=[
RowActionURL(
path=f"data.references[?kind=='hub'].uri#{schema_name}",
description='Launch Jupyter notebook',
icon='launch',
),
RowActionURL(
path=f"data.references[?kind=='repository'].uri#{schema_name}",
description='Go to notebook repository',
icon='github',
)
]
)
)
)
)

0 comments on commit 685f9de

Please sign in to comment.