From 42c820e0eb80604d6e9e4ed43727cdb3b0d935fc Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 25 Apr 2015 23:26:43 +0930 Subject: [PATCH] Fix pin button active state --- framework/core/js/lib/components/back-button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/js/lib/components/back-button.js b/framework/core/js/lib/components/back-button.js index fe2e6222c..0e88ec1f2 100644 --- a/framework/core/js/lib/components/back-button.js +++ b/framework/core/js/lib/components/back-button.js @@ -16,7 +16,7 @@ export default class BackButton extends Component { config: this.onload.bind(this) }, history.canGoBack() ? m('div.btn-group', [ m('button.btn.btn-default.btn-icon.back', {onclick: history.back.bind(history)}, icon('chevron-left icon-glyph')), - pane && pane.active ? m('button.btn.btn-default.btn-icon.pin'+(pane.active ? '.active' : ''), {onclick: pane.togglePinned.bind(pane)}, icon('thumb-tack icon-glyph')) : '', + pane && pane.active ? m('button.btn.btn-default.btn-icon.pin'+(pane.pinned ? '.active' : ''), {onclick: pane.togglePinned.bind(pane)}, icon('thumb-tack icon-glyph')) : '', ]) : (this.props.drawer ? [ m('button.btn.btn-default.btn-icon.drawer-toggle', {onclick: this.toggleDrawer.bind(this)}, icon('reorder icon-glyph')) ] : ''));