Skip to content

Commit 56a8bd2

Browse files
committed
Change to set let variable for authType in Main.js so paging works with windows auth
1 parent 0be84dc commit 56a8bd2

File tree

1 file changed

+6
-2
lines changed
  • src/Serilog.Ui.Web/wwwroot/dist

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@
9595
});
9696
})(jQuery);
9797

98+
let authType;
99+
98100
const routePrefix = {
99101
url: "",
100102
set setUrl(route) {
@@ -110,11 +112,13 @@ const init = (config) => {
110112
sessionStorage.removeItem("serilogui_token");
111113
}
112114

115+
authType = config.authType;
116+
113117
routePrefix.setUrl = config.routePrefix;
114-
fetchData(config.authType);
118+
fetchData();
115119
}
116120

117-
const fetchData = (authType) => {
121+
const fetchData = () => {
118122
const tbody = $("#logTable tbody");
119123
const page = $("#page").val();
120124
const count = $("#count").children("option:selected").val();

0 commit comments

Comments
 (0)