343d36834a
Per maintainer request: remove the 'Auto-refresh logs' toggle entirely — logs are now always collected (container always streams, service/task always poll). Drops state.logCollection and its whole cascade (handleLogsCollectionChange, the logCollectionChange binding, changeLogCollection in all three view controllers, the log-collection-change attribute) and the now-dead manual flush-on-pause machinery (pausedFlushCount / removeTailLines / the flush branch); pauseStream is kept for $destroy/reconnect teardown, and the stream/poll start unconditionally. Collapse the seven stacked settings rows into a single compact flex row (wrap-lines, timestamps, fetch, lines, search, actions) — bindings unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
12 lines
266 B
JavaScript
12 lines
266 B
JavaScript
angular.module('portainer.docker').component('logViewer', {
|
|
templateUrl: './logViewer.html',
|
|
controller: 'LogViewerController',
|
|
bindings: {
|
|
data: '=',
|
|
displayTimestamps: '=',
|
|
sinceTimestamp: '=',
|
|
lineCount: '=',
|
|
resourceName: '<',
|
|
},
|
|
});
|