Skip to content

Commit

Permalink
removing edit link if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ksierks committed Nov 1, 2024
1 parent 7cb90f9 commit cf32020
Showing 1 changed file with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,20 @@
class:
"font-medium text-blue-600 underline dark:text-blue-500 hover:no-underline cursor-pointer",
) %>
<%= link_to_if !automated_workflow_execution.disabled,
t(:"projects.automated_workflow_executions.actions.edit_button"),
edit_namespace_project_automated_workflow_execution_path(
@project.parent,
@project,
automated_workflow_execution,
),
data: {
turbo_stream: true,
},
class:
"font-medium text-blue-600 underline dark:text-blue-500 hover:no-underline cursor-pointer" %>

<% unless automated_workflow_execution.disabled %>
<%= link_to(
t(:"projects.automated_workflow_executions.actions.edit_button"),
edit_namespace_project_automated_workflow_execution_path(
@project.parent,
@project,
automated_workflow_execution,
),
data: {
turbo_stream: true,
},
class:
"font-medium text-blue-600 underline dark:text-blue-500 hover:no-underline cursor-pointer",
) %>
<% end %>
</td>
</tr>

0 comments on commit cf32020

Please sign in to comment.