fix: Switch to stream on applications logs
This commit is contained in:
@@ -92,14 +92,15 @@
|
|||||||
logs = allLogs.slice(currentPage * 100 - 100, currentPage * 100);
|
logs = allLogs.slice(currentPage * 100 - 100, currentPage * 100);
|
||||||
}
|
}
|
||||||
async function loadNewerLogs() {
|
async function loadNewerLogs() {
|
||||||
|
currentPage -= 1;
|
||||||
if (currentPage !== 1) {
|
if (currentPage !== 1) {
|
||||||
clearInterval(loadLogsInterval);
|
clearInterval(loadLogsInterval);
|
||||||
endOfLogs = false;
|
endOfLogs = false;
|
||||||
loadLogsInterval = null;
|
loadLogsInterval = null;
|
||||||
currentPage -= 1;
|
|
||||||
logs = allLogs.slice(currentPage * 100 - 100, currentPage * 100);
|
logs = allLogs.slice(currentPage * 100 - 100, currentPage * 100);
|
||||||
} else {
|
} else {
|
||||||
startOfLogs = true;
|
startOfLogs = true;
|
||||||
|
loadLogs();
|
||||||
loadLogsInterval = setInterval(() => {
|
loadLogsInterval = setInterval(() => {
|
||||||
loadLogs();
|
loadLogs();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|||||||
Reference in New Issue
Block a user