Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 42626f6e rédigé par Kubat's avatar Kubat
Parcourir les fichiers

Limit number of rows in log window

parent a1c7ed5c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!13Dev kubat: More work done on the instance
......@@ -18,7 +18,7 @@
<div style='border-color: #abb6c2; border-style: solid; border-top: none; height: 100%;'>
<table class='table table-sm' style='margin: 0px;'>
<thead class='thead-light'
style='position: sticky; position: -webkit-sticky; top: 0; z-index: 999;'>
style='position: sticky; position: -webkit-sticky; top: 0; z-index: 999; -webkit-app-region: drag'>
<tr>
<th style='border: 0px; position: sticky; position: -webkit-sticky; top: 0; z-index: 999;'>Timestamp</th>
<th style='border: 0px; position: sticky; position: -webkit-sticky; top: 0; z-index: 999;'>Label</th>
......
......@@ -28,6 +28,10 @@ file.on('line', line => {
<td>${match[3]}</td>
</tr>`
);
const limit = 200;
var trs = $('tr');
if (trs.length > limit) trs.slice(2, trs.length - limit).remove();
});
window.onload = () => {};
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter