Skip to content

Commit

Permalink
Merge pull request #488 from olofsvensson/issue_487
Browse files Browse the repository at this point in the history
Issue #487 : Add ghost beamline configuration
  • Loading branch information
olofsvensson authored Jan 28, 2019
2 parents 299d5eb + b98e3e5 commit 16f84ab
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions js/core/widget/sessiongrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,18 @@ SessionGrid.prototype.getToolbar = function(sessions) {
_this.renderHTML(filtered);
};

for (var i =0; i<EXI.credentialManager.getBeamlines().length; i++){
var beamlines = _.filter(EXI.credentialManager.getBeamlines(), function(beamline){
if (EXI.credentialManager.getCredentials()[0].isManager()) {
return beamline;
} else if ((beamline.ghost == null) || ! beamline.ghost) {
return beamline;
}
});
for (var i =0; i< beamlines.length; i++){
items.push({
xtype: 'checkbox',
boxLabel : EXI.credentialManager.getBeamlines()[i].name,
name : EXI.credentialManager.getBeamlines()[i].name,
boxLabel : beamlines[i].name,
name : beamlines[i].name,
handler : myHandler

});
Expand Down

0 comments on commit 16f84ab

Please sign in to comment.