Skip to content

Commit

Permalink
fix Show Javascript card layout (Stirling-Tools#1959)
Browse files Browse the repository at this point in the history
  • Loading branch information
HardikaZalavadia authored Sep 24, 2024
1 parent 9b96367 commit b811553
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/main/java/stirling/software/SPDF/SPdfApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public class SPdfApplication {
public void setServerPortStatic(String port) {
if (port.equalsIgnoreCase("auto")) {
// Use Spring Boot's automatic port assignment (server.port=0)
SPdfApplication.serverPortStatic = "0"; // This will let Spring Boot assign an available port
SPdfApplication.serverPortStatic =
"0"; // This will let Spring Boot assign an available port
} else {
SPdfApplication.serverPortStatic = port;
}
Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/static/js/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ document.getElementById("submitConfigBtn").addEventListener("click", function ()
let selectedOperation = document.getElementById("operationsDropdown").value;

var pipelineName = document.getElementById("pipelineName").value;


let pipelineList = document.getElementById("pipelineList").children;
let pipelineConfig = {
name: pipelineName,
Expand Down Expand Up @@ -218,7 +220,8 @@ fetch("v1/api-docs")

document.getElementById('deletePipelineBtn').addEventListener('click', function(event) {
event.preventDefault();
let pipelineName = document.getElementById('pipelineName').value;
let pipelineName = document.getElementById('pipelineName').value;

if (confirm(deletePipelineText + pipelineName)) {
removePipelineFromUI(pipelineName);
let key = "#Pipeline-" + pipelineName;
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/templates/misc/show-javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<br><br>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12 bg-card">
<div class="col-md-6 bg-card">
<div class="tool-header">
<span class="material-symbols-rounded tool-header-icon advance">javascript</span>
<span class="tool-header-text" th:text="#{showJS.header}"></span>
Expand All @@ -30,7 +30,7 @@
<br>
<button type="submit" id="submitBtn" class="btn btn-primary" th:text="#{showJS.submit}"></button>
</form>
<div class="container mt-5">
<div class="container mt-4">
<!-- Iterate over each main section in the JSON -->
<div id="script-content">
<!-- JavaScript will populate this section -->
Expand Down

0 comments on commit b811553

Please sign in to comment.