Skip to content

Commit c57ee4a

Browse files
authored
Move theme selection to appearance user page when available (#265)
1 parent b4de54a commit c57ee4a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/main/java/io/jenkins/plugins/thememanager/ThemeUserProperty.java

+11
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,16 @@ public String getDisplayName() {
7070
public UserProperty newInstance(User user) {
7171
return new ThemeUserProperty();
7272
}
73+
74+
// @Override
75+
// public @NonNull UserPropertyCategory getUserPropertyCategory() {
76+
// return UserPropertyCategory.get(UserPropertyCategory.Appearance.class);
77+
// }
78+
79+
// replace with above method when bumping core to version including:
80+
// https://github.com/jenkinsci/jenkins/pull/7268
81+
public @CheckForNull String getUserPropertyCategoryAsString() {
82+
return "appearance";
83+
}
7384
}
7485
}

0 commit comments

Comments
 (0)