Skip to content

Commit

Permalink
Remove set as startup task button for non-event activities (OrchardCM…
Browse files Browse the repository at this point in the history
…S#16351)

Co-authored-by: Hisham Bin Ateya <[email protected]>
  • Loading branch information
mdameer and hishamco authored Jul 4, 2024
1 parent 4aeaaf9 commit 5207b37
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
</div>
}
<div class="activity-commands">
<a class="btn btn-sm btn-secondary activity-start-action" href="#" data-bs-toggle="button" title="@T["Startup task"]"><i class="fa-solid fa-power-off" aria-hidden="true"></i></a>
@if (isEvent)
{
<a class="btn btn-sm btn-secondary activity-start-action" href="#" data-bs-toggle="button" title="@T["Startup event"]"><i class="fa-solid fa-power-off" aria-hidden="true"></i></a>
}

@if (hasEditor)
{
<a class="btn btn-sm btn-primary activity-edit-action" asp-action="Edit" asp-controller="Activity" asp-route-workflowtypeid="@Model.WorkflowTypeId" asp-route-activityid="@activityRecord.ActivityId" asp-route-returnurl="@Model.ReturnUrl" data-persist-workflow="true" title="@T["Edit"]"><i class="fa-solid fa-pencil" aria-hidden="true"></i></a>
Expand Down

0 comments on commit 5207b37

Please sign in to comment.