Skip to content

Commit a2b5d82

Browse files
authored
[JENKINS-75683] Restore transient view actions (jenkinsci#10676)
Restore view actions
1 parent 24a2e7c commit a2b5d82

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

core/src/main/java/hudson/model/View.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -575,18 +575,9 @@ public SearchGroup getSearchGroup() {
575575

576576
/**
577577
* Returns the transient {@link Action}s associated with the top page.
578-
*
579-
* <p>
580-
* If views don't want to show top-level actions, this method
581-
* can be overridden to return different objects.
582-
*
583-
* @see Jenkins#getActions()
584578
*/
585579
public List<Action> getActions() {
586-
List<Action> result = new ArrayList<>();
587-
result.addAll(getOwner().getViewActions());
588-
result.addAll(TransientViewActionFactory.createAllFor(this));
589-
return result;
580+
return TransientViewActionFactory.createAllFor(this);
590581
}
591582

592583
/**

core/src/main/resources/hudson/model/View/sidepanel.jelly

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ THE SOFTWARE.
6060
<st:include page="sidepanel2.jelly" optional="true"/>
6161

6262
<st:include page="tasks-bottom.jelly" it="${it.owner}" optional="true" />
63+
<t:actions />
6364
</l:tasks>
6465
<j:forEach var="w" items="${it.widgets}">
6566
<j:set var="view" value="${it}" /><!-- expose the view that's rendering this sidepanel to the widget -->

0 commit comments

Comments
 (0)