mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-26 19:15:09 +00:00
Update Search.java
This commit is contained in:
1 parent
a9aadbab30
commit
ea67d6a554
1 file changed
+3
-11
@@ -166,7 +166,7 @@ public class Search implements StaplerProxy {
|
||||
symbolName = "symbol-search";
|
||||
}
|
||||
|
||||
r.suggestions.add(new Item(item.getPath(), item.getUrl(), "",
|
||||
r.suggestions.add(new Item(item.getPath(), item.getUrl(),
|
||||
Symbol.get(new SymbolRequest.Builder().withRaw(symbolName).build())));
|
||||
}
|
||||
rsp.serveExposedBean(req, r, Flavor.JSON);
|
||||
@@ -268,18 +268,15 @@ public class Search implements StaplerProxy {
|
||||
|
||||
private final String url;
|
||||
|
||||
public final String icon;
|
||||
|
||||
public final String iconXml;
|
||||
|
||||
public Item(String name) {
|
||||
this(name, null, null, null);
|
||||
this(name, null, null);
|
||||
}
|
||||
|
||||
public Item(String name, String url, String icon, String iconXml) {
|
||||
public Item(String name, String url, String iconXml) {
|
||||
this.name = name;
|
||||
this.url = url;
|
||||
this.icon = icon;
|
||||
this.iconXml = iconXml;
|
||||
}
|
||||
|
||||
@@ -288,11 +285,6 @@ public class Search implements StaplerProxy {
|
||||
return url;
|
||||
}
|
||||
|
||||
@Exported
|
||||
public String getIcon() {
|
||||
return icon;
|
||||
}
|
||||
|
||||
@Exported
|
||||
public String getIconXml() {
|
||||
return iconXml;
|
||||
|
||||
Reference in new issue
Block a user