Skip to content

Commit 56e78d5

Browse files
committed
Fix setting JWT token.
1 parent 8990000 commit 56e78d5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/Serilog.Ui.Web/wwwroot/dist/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474
$("#saveJwt").on("click", function () {
7575
const isJwtSaved = $(this).data("saved");
76-
if (!isJwtSaved) {
76+
if (isJwtSaved.toString() === "false") {
7777
const token = $("#jwtToken").val();
7878
if (!token) return;
7979

@@ -86,6 +86,7 @@
8686
fetchData();
8787
return;
8888
}
89+
8990
sessionStorage.removeItem("serilogui_token");
9091
$(this).text("Save");
9192
$(this).data("saved", "false");

src/Serilog.Ui.Web/wwwroot/dist/main.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Serilog.Ui.Web/wwwroot/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ <h5 class="modal-title" id="messageModalLabel">Detail</h5>
163163

164164
<script src="./jquery-3.5.1.min.js"></script>
165165
<script src="./bootstrap.bundle.min.js"></script>
166-
<script src="./main.min.js"></script>
166+
<script src="./main.js"></script>
167167
<script>
168168
$(function () {
169169
const configObject = JSON.parse('%(Configs)');

0 commit comments

Comments
 (0)