T128 host displayed

This commit is contained in:
2021-01-11 14:16:16 +01:00
parent cf39f20316
commit 078cf58b8b
3 changed files with 10 additions and 2 deletions

View File

@@ -17,6 +17,8 @@ var myList, data, previousSort;
state.querySet = listForPagination;
buildTable();
var pubhost = location.hostname;
document.getElementById("pubhost").innerHTML = location.hostname;
document.querySelector('#btn-list-1').addEventListener('click', function() {
var x = document.getElementById("list-wrapper");

View File

@@ -9,6 +9,9 @@
<link href="/css/styles.css" rel="stylesheet"/>
</head>
<body>
<script>
</script>
<hr>
<div id="container">
<div id="header"></div>
@@ -23,10 +26,12 @@
<div>
<br>
<p>You can test the mocked message using the url default values from the form will be used.</p>
<gen-link>http://[[${localhost}]]:8097/klaus/v1/get/[[${mockedMessageDto.clientUUID}]]/[[${mockedMessageDto.mockedResponseId}]]</gen-link>
<gen-link>http://<span id="pubhost"></span>:8097/klaus/v1/get/[[${mockedMessageDto.clientUUID}]]/[[${mockedMessageDto.mockedResponseId}]]</gen-link>
<p>Use this link to get your message.</p>
<br>
<table>
<p>In order to change mockup response settings please fill the form below and save.</p><br>
<form action="#" th:action="@{/mock/__${mockedMessageDto.clientUUID}__}"