fix container logs

This commit is contained in:
usmannasir
2025-04-11 14:17:56 +05:00
parent 326c22c8f3
commit 2bdfa61b0e
2 changed files with 23 additions and 24 deletions

View File

@@ -17464,7 +17464,13 @@ app.controller('ListDockersitecontainer', function ($scope, $http) {
$('#cyberpanelLoading').hide();
if (response.data.status === 1) {
$scope.logs = response.data.data[1];
// Find the container in the list and update its logs
for (var i = 0; i < $scope.ContainerList.length; i++) {
if ($scope.ContainerList[i].id === containerid) {
$scope.ContainerList[i].logs = response.data.data[1];
break;
}
}
} else {
new PNotify({
title: 'Operation Failed!',