You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The console is currently being throttled due to the speed at which data is being sent. Messages are being queued and will appear as the queue is worked through.
52
52
</div>
53
+
<divid="consoleNotify"class="hidden">
54
+
<iclass="fa fa-bell"></i>
55
+
</div>
53
56
<divid="terminal">
54
57
</div>
55
58
</div>
@@ -198,6 +201,24 @@
198
201
returnfalse;
199
202
}
200
203
});
204
+
205
+
const$consoleNotify=$('#consoleNotify');
206
+
$consoleNotify.on('click', function () {
207
+
terminal.scroll_to_bottom();
208
+
$consoleNotify.removeClass('hidden');
209
+
});
210
+
211
+
terminal.on('scroll', function() {
212
+
if (terminal.is_bottom()) {
213
+
$consoleNotify.addClass('hidden');
214
+
}
215
+
})
216
+
217
+
functionterminalNotifyOutput() {
218
+
if (!terminal.is_bottom()) {
219
+
$consoleNotify.removeClass('hidden');
220
+
}
221
+
}
201
222
202
223
var ctc =$('#chart_cpu');
203
224
var timeLabels = [];
@@ -327,10 +348,13 @@ function pushOutputQueue()
327
348
$('#consoleThrottled').addClass('hidden');
328
349
}
329
350
330
-
for (var i =0; i <{{env('CONSOLE_PUSH_COUNT', 10) }}&&outputQueue.length>0; i++)
331
-
{
332
-
terminal.echo(outputQueue[0]);
333
-
outputQueue.shift();
351
+
if (outputQueue.length>0) {
352
+
for (var i =0; i <{{env('CONSOLE_PUSH_COUNT', 10) }}&&outputQueue.length>0; i++)
353
+
{
354
+
terminal.echo(outputQueue[0]);
355
+
outputQueue.shift();
356
+
}
357
+
terminalNotifyOutput();
334
358
}
335
359
}
336
360
@@ -348,8 +372,10 @@ function pushOutputQueue()
348
372
timeout:10000
349
373
}).done(function(data) {
350
374
terminal.echo(data);
375
+
terminalNotifyOutput();
351
376
}).fail(function() {
352
377
terminal.error('Unable to load initial server log, try reloading the page.');
0 commit comments