Skip to content

Commit

Permalink
Merge in master
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Dec 3, 2022
1 parent ace2138 commit 0da81bd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion core/src/main/java/jenkins/Symbols.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ public HttpResponse doIndex(StaplerRequest request) {

String title = Objects.toString(request.getParameter("title"), "");
String tooltip = Objects.toString(request.getParameter("tooltip"), "");
String htmlTooltip = Objects.toString(request.getParameter("html-tooltip"), "");
String classes = Objects.toString(request.getParameter("classes"), "");
String pluginName = extractPluginNameFromIconSrc(symbol);
String id = Objects.toString(request.getParameter("id"), "");

JSONObject jsonObject = new JSONObject();
jsonObject.put("symbol", IconSet.getSymbol(symbol, title, tooltip, classes, pluginName, id));
jsonObject.put("symbol", IconSet.getSymbol(symbol, title, tooltip, tooltip, classes, pluginName, id));

return HttpResponses.okJSON(jsonObject);
}
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/resources/lib/layout/command-palette.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,4 @@ THE SOFTWARE.
</div>
</div>
</dialog>

<script src="${resURL}/jsbundles/command-palette.js" type="text/javascript" />
</j:jelly>
2 changes: 2 additions & 0 deletions war/src/main/js/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import CommandPalette from "@/components/command-palette";
import Notifications from "@/components/notifications";
import Tooltips from "@/components/tooltips";

CommandPalette.init();
Notifications.init();
Tooltips.init();
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import debounce from "lodash/debounce";

const datasources = [JenkinsSearchSource];

window.addEventListener("load", () => {
function init() {
const i18n = document.getElementById("command-palette-i18n");
const headerCommandPaletteButton = document.getElementById(
"button-open-command-palette"
Expand Down Expand Up @@ -201,4 +201,6 @@ window.addEventListener("load", () => {
}
}
}
});
};

export default { init };

0 comments on commit 0da81bd

Please sign in to comment.