Skip to content

Commit

Permalink
Related-Bug:#1437178
Browse files Browse the repository at this point in the history
Handled the null check and moved the code from common place to underlay specific page

Change-Id: Iab88edadd5cc93791f6324aeac9fecd1741a6c6b
  • Loading branch information
vishnuvv committed Apr 8, 2015
1 parent 57fe3c0 commit e4fc679
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions webroot/monitor/infra/underlay/ui/js/flow_queries.js
Expand Up @@ -904,16 +904,18 @@ function loadFlowResultsForUnderlay(options, reqQueryObj, columnDisplay, fcGridD
$(e['currentTarget']).attr('checked',true);
}
},
actionCell: [
{
title: 'Start Packet Capture',
actionCell: []
};
if(getValueByJsonPath(globalObj['webServerInfo'],'disabledFeatures;disabled',[]).indexOf('mon_infra_underlay') == -1) {
gridConfig.body.options.actionCell.push({
title: 'Show Underlay Paths',
iconClass: 'icon-edit',
onClick: function(rowIndex){
startPacketCapture4Flow(options.elementId, rowIndex, 'parseAnalyzerRuleParams4FlowRecord');
var dataItem = $('#' + options.elementId).data('contrailGrid')._grid.getDataItem(rowIndex);
showUnderlayPaths(dataItem);
}
}
]
};
});
}
$("#mapflow").die('click').live('click',function(e){
var startTime = $("#"+options.queryPrefix+"-results").data('startTimeUTC');
var endTime = $("#"+options.queryPrefix+"-results").data('endTimeUTC');
Expand Down

0 comments on commit e4fc679

Please sign in to comment.