Skip to content

Commit

Permalink
Move theme selection to appearance user page when available (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored Jun 8, 2024
1 parent b4de54a commit c57ee4a
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,16 @@ public String getDisplayName() {
public UserProperty newInstance(User user) {
return new ThemeUserProperty();
}

// @Override
// public @NonNull UserPropertyCategory getUserPropertyCategory() {
// return UserPropertyCategory.get(UserPropertyCategory.Appearance.class);
// }

// replace with above method when bumping core to version including:
// https://github.com/jenkinsci/jenkins/pull/7268
public @CheckForNull String getUserPropertyCategoryAsString() {
return "appearance";

Check warning on line 82 in src/main/java/io/jenkins/plugins/thememanager/ThemeUserProperty.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 82 is not covered by tests
}
}
}

0 comments on commit c57ee4a

Please # to comment.