Renamed mergedSum and configSum fields

This commit is contained in:
Jesús Ángel 2018-07-26 15:46:05 +02:00
parent 0a3fc30d61
commit a0a7c2e692
2 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ app.controller('agentsController',
function (
$timeout, $scope, $location, $rootScope,
appState, apiReq, AgentsAutoComplete, errorHandler,
tabVisualizations, vis2png, shareAgent, commonData,
tabVisualizations, shareAgent, commonData,
reportingService, visFactoryService, csvReq,
wzTableFilter
) {
@ -310,7 +310,7 @@ function (
$scope.groupMergedSum = (groupMergedSum.length) ? groupMergedSum[0].mergedSum : 'Unknown';
const agentMergedSum = agentGroups[1].data.data.items.filter(item => item.id === $scope.agent.id);
$scope.agentMergedSum = (agentMergedSum.length) ? agentMergedSum[0].merged_sum : 'Unknown';
$scope.agentMergedSum = (agentMergedSum.length) ? agentMergedSum[0].mergedSum : 'Unknown';
$scope.isSynchronized = (($scope.agentMergedSum === $scope.groupMergedSum) && !([$scope.agentMergedSum,$scope.groupMergedSum].includes('Unknown')) ) ? true : false;

View File

@ -25,11 +25,11 @@
<div layout="row" class="wz-padding-top-10">
<span flex="25">Configuration sum</span>
<span class="wz-text-right color-grey">{{ currentGroup.conf_sum }}</span>
<span class="wz-text-right color-grey">{{ currentGroup.configSum }}</span>
</div>
<div layout="row" class="wz-padding-top-10">
<span flex="25">Merged sum</span>
<span class="wz-text-right color-grey">{{ currentGroup.merged_sum }}</span>
<span class="wz-text-right color-grey">{{ currentGroup.mergedSum }}</span>
</div>
</md-card-content>
</md-card>
@ -74,7 +74,7 @@
flex
extra-limit="true"
path="'/agents/groups'"
keys="['name',{value:'count',size:1},{value:'merged_sum',size:3}]"
keys="['name',{value:'count',size:1},{value:'mergedSum',size:3}]"
allow-click="true"
rows-per-page="14">
</wazuh-table>