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')) ] : ''));