Skip to content

Commit

Permalink
add a condition for FX
Browse files Browse the repository at this point in the history
  • Loading branch information
delageniere committed May 13, 2019
1 parent 6e3f9d5 commit 80bcc24
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions js/mx/view/datacollection/grid/mxdatacollectiongrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ MXDataCollectionGrid.prototype.getPanel = function(dataCollectionGroup) {

MXDataCollectionGrid.prototype.getToolBar = function() {
var _this = this;

//var proposalCode = this.proposal.Proposal_proposalCode;

function onMenuClicked(widget) {
if (_this.activePanel != widget) {
Expand All @@ -42,9 +44,7 @@ MXDataCollectionGrid.prototype.getToolBar = function() {
_this.reloadData(_this.dataCollectionGroup);
}
}
}


}

return Ext.create('Ext.toolbar.Toolbar', {
width: 500,
Expand Down Expand Up @@ -155,12 +155,21 @@ MXDataCollectionGrid.prototype.getToolBar = function() {
location.href = _this.rtfAnalysisUrl;
}
}
},
{
},
{
text: "<span class='glyphicon glyphicon-envelope'> Send Report</span>",
id : 'sendPdfBtn',
tooltip: 'Send Session Summary Report as PDF',
margin: '1 0 1 2',
hidden: true,
/** function(){
if (_this.proposalCode == 'FX'){
false;
} else {
true;
}
},
**/
handler : function(){
if (_this.sendPdfUrl != null){
location.href = _this.sendPdfUrl;
Expand Down

0 comments on commit 80bcc24

Please sign in to comment.