Skip to content

Commit

Permalink
add launch button
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech committed Sep 20, 2023
1 parent 35e3a28 commit a19475b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions jhub_apps/launcher/panel_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(self, app: App, **params):
self.username = params.get("username")

# Define Panel buttons
self.view_button = pn.widgets.Button(name="View", button_type="primary")
self.view_button = pn.widgets.Button(name="Launch", button_type="primary")
self.edit_button = pn.widgets.Button(name="Edit", button_type="warning")
self.delete_button = pn.widgets.Button(name="Delete", button_type="danger")

Expand All @@ -85,9 +85,12 @@ def __init__(self, app: App, **params):
self.delete_button.on_click(self.on_delete)

# Using a Row to group the image, description, and buttons horizontally
buttons = pn.Row(
self.edit_button,
self.delete_button,
buttons = pn.Column(
self.view_button,
pn.Row(
self.edit_button,
self.delete_button,
)
)
self.content = pn.Column(
pn.pane.Image(self.app.thumbnail or self.app.logo, link_url=self.app.url, width=100, height=100),
Expand Down

0 comments on commit a19475b

Please sign in to comment.