Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -166,6 +174,7 @@ let ConfigController = function (cdn, currentSnapshot, newSnapshot, $scope, $sta
"language": {
"emptyTable": "No pending changes"
},
"buttons": [],
"columnDefs": [
{ 'orderable': false, 'targets': [2, 3] }
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</div>
<div id="snapshotContainer" class="x_content">
<uib-tabset active="active" justified="true">
<uib-tab index="0" class="tab">
<uib-tab index="0" class="tab" select="tabSelected()">
<uib-tab-heading uib-popover-template="configCount.templateUrl" popover-title="{{configCount.added + configCount.removed + configCount.updated}} Total Changes" popover-trigger="mouseenter" popover-placement="top" popover-append-to-body="true">
General Config<br/>[ {{configCount.added}} | {{configCount.removed}} | {{configCount.updated}} ]
</uib-tab-heading>
Expand All @@ -58,7 +58,7 @@
</table>
</div>
</uib-tab>
<uib-tab index="1" class="tab">
<uib-tab index="1" class="tab" select="tabSelected()">
<uib-tab-heading uib-popover-template="contentRoutersCount.templateUrl" popover-title="{{contentRoutersCount.added + contentRoutersCount.removed + contentRoutersCount.updated}} Total Changes" popover-trigger="mouseenter" popover-placement="top" popover-append-to-body="true">
Traffic Routers<br/>[ {{contentRoutersCount.added}} | {{contentRoutersCount.removed}} | {{contentRoutersCount.updated}} ]
</uib-tab-heading>
Expand All @@ -84,7 +84,7 @@
</table>
</div>
</uib-tab>
<uib-tab index="2" class="tab">
<uib-tab index="2" class="tab" select="tabSelected()">
<uib-tab-heading uib-popover-template="monitorsCount.templateUrl" popover-title="{{monitorsCount.added + monitorsCount.removed + monitorsCount.updated}} Total Changes" popover-trigger="mouseenter" popover-placement="top" popover-append-to-body="true">
Traffic Monitors<br/>[ {{monitorsCount.added}} | {{monitorsCount.removed}} | {{monitorsCount.updated}} ]
</uib-tab-heading>
Expand All @@ -110,7 +110,7 @@
</table>
</div>
</uib-tab>
<uib-tab index="3" class="tab">
<uib-tab index="3" class="tab" select="tabSelected()">
<uib-tab-heading uib-popover-template="contentServersCount.templateUrl" popover-title="{{contentServersCount.added + contentServersCount.removed + contentServersCount.updated}} Total Changes" popover-trigger="mouseenter" popover-placement="top" popover-append-to-body="true">
Traffic Servers<br/>[ {{contentServersCount.added}} | {{contentServersCount.removed}} | {{contentServersCount.updated}} ]
</uib-tab-heading>
Expand All @@ -136,7 +136,7 @@
</table>
</div>
</uib-tab>
<uib-tab index="4" class="tab">
<uib-tab index="4" class="tab" select="tabSelected()">
<uib-tab-heading uib-popover-template="deliveryServicesCount.templateUrl" popover-title="{{deliveryServicesCount.added + deliveryServicesCount.removed + deliveryServicesCount.updated}} Total Changes" popover-trigger="mouseenter" popover-placement="top" popover-append-to-body="true">
Delivery Services<br/>[ {{deliveryServicesCount.added}} | {{deliveryServicesCount.removed}} | {{deliveryServicesCount.updated}} ]
</uib-tab-heading>
Expand All @@ -162,7 +162,7 @@
</table>
</div>
</uib-tab>
<uib-tab index="5" class="tab">
<uib-tab index="5" class="tab" select="tabSelected()">
<uib-tab-heading uib-popover-template="edgeLocationsCount.templateUrl" popover-title="{{edgeLocationsCount.added + edgeLocationsCount.removed + edgeLocationsCount.updated}} Total Changes" popover-trigger="mouseenter" popover-placement="top" popover-append-to-body="true">
Edge Cache Groups<br/>[ {{edgeLocationsCount.added}} | {{edgeLocationsCount.removed}} | {{edgeLocationsCount.updated}} ]
</uib-tab-heading>
Expand All @@ -188,7 +188,7 @@
</table>
</div>
</uib-tab>
<uib-tab index="6" class="tab">
<uib-tab index="6" class="tab" select="tabSelected()">
<uib-tab-heading uib-popover-template="trLocationsCount.templateUrl" popover-title="{{trLocationsCount.added + trLocationsCount.removed + trLocationsCount.updated}} Total Changes" popover-trigger="mouseenter" popover-placement="top" popover-append-to-body="true">
TR Cache Groups<br/>[ {{trLocationsCount.added}} | {{trLocationsCount.removed}} | {{trLocationsCount.updated}} ]
</uib-tab-heading>
Expand All @@ -214,7 +214,7 @@
</table>
</div>
</uib-tab>
<uib-tab index="7" class="tab">
<uib-tab index="7" class="tab" select="tabSelected()">
<uib-tab-heading uib-popover-template="statsCount.templateUrl" popover-title="{{statsCount.added + statsCount.removed + statsCount.updated}} Total Changes" popover-trigger="mouseenter" popover-placement="top" popover-append-to-body="true">
Stats<br/>[ {{statsCount.added}} | {{statsCount.removed}} | {{statsCount.updated}} ]
</uib-tab-heading>
Expand Down