Merge branch 'add-icons-to-command-palette' of github.com:janfaracik/jenkins into add-icons-to-command-palette

This commit is contained in:
Tim Jacomb 2024-12-11 21:11:56 +00:00
commit 1b9faa8fb0
No known key found for this signature in database
GPG Key ID: D40F4AD2F55AF15F
2 changed files with 2 additions and 6 deletions

View File

@ -1109,11 +1109,6 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
return getUrl();
}
@Override
public String getSearchIcon() {
return this.getIconClassName();
}
/**
* {@link RetentionStrategy} associated with this computer.
*

View File

@ -35,6 +35,7 @@ import java.util.concurrent.Future;
import jenkins.agents.IOfflineCause;
import org.jenkins.ui.icon.Icon;
import org.jenkins.ui.icon.IconSet;
import org.jenkins.ui.icon.IconSpec;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.Beta;
@ -44,7 +45,7 @@ import org.kohsuke.accmod.restrictions.Beta;
* @since 2.480
*/
@Restricted(Beta.class)
public interface IComputer extends AccessControlled {
public interface IComputer extends AccessControlled, IconSpec {
/**
* Returns {@link Node#getNodeName() the name of the node}.
*/