mirror of https://github.com/portainer/portainer
logs: added spinner during refresh
parent
b257216194
commit
66ba60c475
|
@ -20,6 +20,7 @@ function($scope, $routeParams, $location, $anchorScroll, ContainerLogs, Containe
|
||||||
});
|
});
|
||||||
|
|
||||||
function getLogs() {
|
function getLogs() {
|
||||||
|
ViewSpinner.spin();
|
||||||
ContainerLogs.get($routeParams.id, {
|
ContainerLogs.get($routeParams.id, {
|
||||||
stdout: 1,
|
stdout: 1,
|
||||||
stderr: 0,
|
stderr: 0,
|
||||||
|
@ -28,7 +29,9 @@ function($scope, $routeParams, $location, $anchorScroll, ContainerLogs, Containe
|
||||||
}, function(data, status, headers, config) {
|
}, function(data, status, headers, config) {
|
||||||
// Replace carriage returns twith newlines to clean up output
|
// Replace carriage returns twith newlines to clean up output
|
||||||
$scope.stdout = data.replace(/[\r]/g, '\n');
|
$scope.stdout = data.replace(/[\r]/g, '\n');
|
||||||
|
ViewSpinner.stop();
|
||||||
});
|
});
|
||||||
|
|
||||||
ContainerLogs.get($routeParams.id, {
|
ContainerLogs.get($routeParams.id, {
|
||||||
stdout: 0,
|
stdout: 0,
|
||||||
stderr: 1,
|
stderr: 1,
|
||||||
|
@ -36,6 +39,7 @@ function($scope, $routeParams, $location, $anchorScroll, ContainerLogs, Containe
|
||||||
tail: $scope.tailLines
|
tail: $scope.tailLines
|
||||||
}, function(data, status, headers, config) {
|
}, function(data, status, headers, config) {
|
||||||
$scope.stderr = data.replace(/[\r]/g, '\n');
|
$scope.stderr = data.replace(/[\r]/g, '\n');
|
||||||
|
ViewSpinner.stop();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue