diff --git a/beat/web/reports/static/reports/app/directives/tableItem.js b/beat/web/reports/static/reports/app/directives/tableItem.js index a8798b2c18dbf4858cd4d0fb093d74d6e8c2cb8a..343a7b8b8f79d4fbc2a9477c64a594fd94e83ca9 100644 --- a/beat/web/reports/static/reports/app/directives/tableItem.js +++ b/beat/web/reports/static/reports/app/directives/tableItem.js @@ -161,6 +161,10 @@ angular.module('reportApp') // and the user cant see the exp return false; }; + + scope.sortableOptions = { + items: `th:not(:first-child)` + }; }, template: ` <div ng-if='isViewingCsv.val'> @@ -169,7 +173,7 @@ angular.module('reportApp') <div ng-if='!isViewingCsv.val' style='height: 100%; overflow-x: auto;'> <table class="table table-striped table-hover"> <thead> - <tr ui-sortable ng-model='fields'> + <tr ui-sortable='sortableOptions' ng-model='fields'> <th ng-repeat='field in fields'> <span ng-if="sortField.val == field"