Skip to content

Commit

Permalink
only show Update & Options button on Run tab
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko committed Sep 23, 2024
1 parent 524122b commit 222f5c0
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions daras_ai_v2/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,15 +401,12 @@ def _render_header(self):
"""
)

if self.request.user and self.tab in [
RecipeTabs.run,
RecipeTabs.run_as_api,
RecipeTabs.integrations,
]:
if self.request.user and self.tab == RecipeTabs.run:
self._render_options_button_with_dialog()

self._render_share_button()
self._render_save_button()
self._render_share_button()
self._render_save_button()
else:
self._render_copy_link_button(label="Copy Link")

if tbreadcrumbs.has_breadcrumbs() or self.current_sr_user:
# only render title here if the above row was not empty
Expand Down

0 comments on commit 222f5c0

Please sign in to comment.