diff --git a/traffic_portal/app/src/modules/private/cdns/config/ConfigController.js b/traffic_portal/app/src/modules/private/cdns/config/ConfigController.js index 8483a36b83..6b8dc2e556 100644 --- a/traffic_portal/app/src/modules/private/cdns/config/ConfigController.js +++ b/traffic_portal/app/src/modules/private/cdns/config/ConfigController.js @@ -155,6 +155,14 @@ let ConfigController = function (cdn, currentSnapshot, newSnapshot, $scope, $sta }); }; + $scope.tabSelected = function() { + // issue 3863 - adjust column headers when tab is selected and data table is visible. hacky...sorry... + window.setTimeout(function() { + $($.fn.dataTable.tables(true)).DataTable() + .columns.adjust(); + },100); + }; + $scope.navigateToPath = locationUtils.navigateToPath; angular.element(document).ready(function () { @@ -166,6 +174,7 @@ let ConfigController = function (cdn, currentSnapshot, newSnapshot, $scope, $sta "language": { "emptyTable": "No pending changes" }, + "buttons": [], "columnDefs": [ { 'orderable': false, 'targets': [2, 3] } ] diff --git a/traffic_portal/app/src/modules/private/cdns/config/config.tpl.html b/traffic_portal/app/src/modules/private/cdns/config/config.tpl.html index 3b1ecda860..503947d669 100644 --- a/traffic_portal/app/src/modules/private/cdns/config/config.tpl.html +++ b/traffic_portal/app/src/modules/private/cdns/config/config.tpl.html @@ -32,7 +32,7 @@
- + General Config
[ {{configCount.added}} | {{configCount.removed}} | {{configCount.updated}} ]
@@ -58,7 +58,7 @@
- + Traffic Routers
[ {{contentRoutersCount.added}} | {{contentRoutersCount.removed}} | {{contentRoutersCount.updated}} ]
@@ -84,7 +84,7 @@
- + Traffic Monitors
[ {{monitorsCount.added}} | {{monitorsCount.removed}} | {{monitorsCount.updated}} ]
@@ -110,7 +110,7 @@
- + Traffic Servers
[ {{contentServersCount.added}} | {{contentServersCount.removed}} | {{contentServersCount.updated}} ]
@@ -136,7 +136,7 @@
- + Delivery Services
[ {{deliveryServicesCount.added}} | {{deliveryServicesCount.removed}} | {{deliveryServicesCount.updated}} ]
@@ -162,7 +162,7 @@
- + Edge Cache Groups
[ {{edgeLocationsCount.added}} | {{edgeLocationsCount.removed}} | {{edgeLocationsCount.updated}} ]
@@ -188,7 +188,7 @@
- + TR Cache Groups
[ {{trLocationsCount.added}} | {{trLocationsCount.removed}} | {{trLocationsCount.updated}} ]
@@ -214,7 +214,7 @@
- + Stats
[ {{statsCount.added}} | {{statsCount.removed}} | {{statsCount.updated}} ]