Skip to content

Commit

Permalink
use javascript property
Browse files Browse the repository at this point in the history
  • Loading branch information
Unihedro committed Jun 19, 2016
1 parent 9513356 commit 9039608
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/tournament/src/view/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ function withdraw(ctrl) {
function join(ctrl) {
return orJoinSpinner(ctrl, function() {
var joinable = ctrl.data.verdicts.accepted;
return m('button.button.right.text' + (joinable ? '' : '[disabled]'), {
return m('button.button.right.text', {
class: joinable ? 'glowed' : '',
disabled: !joinable,
'data-icon': 'G',
onclick: ctrl.join
}, ctrl.trans('join'));
Expand Down

0 comments on commit 9039608

Please sign in to comment.