Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions core/src/main/java/hudson/model/View.java
Original file line number Diff line number Diff line change
Expand Up @@ -1250,6 +1250,12 @@ public static View createViewFromXML(String name, InputStream xml) throws IOExce
}
}

// for Jelly
@Restricted(DoNotUse.class)
public boolean isMyViewsProperty() {
return getOwner() instanceof MyViewsProperty;
}

public static class PropertyList extends DescribableList<ViewProperty, ViewPropertyDescriptor> {
private PropertyList(View owner) {
super(owner);
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/resources/hudson/model/View/main.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<j:if test="${!newDashboardPage}">
<j:choose>
<j:when test="${it.owner.class == hudson.model.MyViewsProperty.class}">
<j:when test="${it.isMyViewsProperty()}">
<st:include it="${it.owner.viewsTabBar}" page="viewTabs" />
</j:when>
<j:otherwise>
Expand All @@ -41,7 +41,7 @@

<j:if test="${!newDashboardPage}">
<j:choose>
<j:when test="${it.owner.class == hudson.model.MyViewsProperty.class}">
<j:when test="${it.isMyViewsProperty()}">
<st:include it="${it.owner.viewsTabBar}" page="viewTabs" />
</j:when>
<j:otherwise>
Expand Down
Loading