mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
fix issue with design on n8n page
This commit is contained in:
@@ -13,6 +13,12 @@ app.controller('ListDockersitecontainer', function ($scope, $http) {
|
||||
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
|
||||
}
|
||||
|
||||
// Helper function to truncate container IDs
|
||||
$scope.truncateId = function(id) {
|
||||
if (!id) return '';
|
||||
return id.substring(0, 12);
|
||||
};
|
||||
|
||||
$scope.getcontainer = function () {
|
||||
$('#cyberpanelLoading').show();
|
||||
url = "/docker/getDockersiteList";
|
||||
@@ -397,7 +403,7 @@ app.controller('ListDockersitecontainer', function ($scope, $http) {
|
||||
|
||||
// Refresh container info after short delay to allow Docker to update
|
||||
setTimeout(function() {
|
||||
$scope.Lunchcontainer(container.id);
|
||||
$scope.getcontainer();
|
||||
}, 1000);
|
||||
} else {
|
||||
new PNotify({
|
||||
@@ -545,7 +551,7 @@ app.controller('ListDockersitecontainer', function ($scope, $http) {
|
||||
});
|
||||
$('#settings').modal('hide');
|
||||
// Refresh container info after update
|
||||
$scope.Lunchcontainer($scope.selectedContainer.id);
|
||||
$scope.getcontainer();
|
||||
} else {
|
||||
new PNotify({
|
||||
title: 'Operation Failed!',
|
||||
@@ -570,6 +576,7 @@ app.controller('ListDockersitecontainer', function ($scope, $http) {
|
||||
$scope.addVolField = function() {
|
||||
if (!$scope.volList) {
|
||||
$scope.volList = {};
|
||||
$scope.volListNumber = 0;
|
||||
}
|
||||
|
||||
$scope.volList[$scope.volListNumber] = {'dest': '', 'src': ''};
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<h5>Container Info</h5>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<p><strong>ID:</strong> {{ '{% verbatim %}' }}{{ container.id.substring(0, 12) }}{{ '{% endverbatim %}' }}</p>
|
||||
<p><strong>ID:</strong> {{ '{% verbatim %}' }}{{ truncateId(container.id) }}{{ '{% endverbatim %}' }}</p>
|
||||
<p><strong>Image:</strong> {{ '{% verbatim %}' }}{{ container.Image }}{{ '{% endverbatim %}' }}</p>
|
||||
<p><strong>Status:</strong> <span ng-class="{'text-success': container.Status == 'running', 'text-danger': container.Status != 'running'}">{{ '{% verbatim %}' }}{{ container.Status }}{{ '{% endverbatim %}' }}</span></p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user