Skip to content

Commit

Permalink
OOB: Adding handlebars isReseller helper
Browse files Browse the repository at this point in the history
  • Loading branch information
JRMaitre committed Apr 25, 2018
1 parent e1c9447 commit aa8f5c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/js/lib/monster.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ define(function(require) {
return options[monster.util.isSuperDuper(account) ? 'fn' : 'inverse'](this);
},

isReseller: function(pAccount, pOptions) {
var account = pAccount.hasOwnProperty('is_reseller') ? pAccount : undefined,
options = !pOptions ? pAccount : pOptions;

return options[monster.util.isReseller(account) ? 'fn' : 'inverse'](this);
},

monsterCheckbox: function() {
var templateData = {
cssClass: 'monster-checkbox',
Expand Down

0 comments on commit aa8f5c1

Please sign in to comment.