1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 05:00:56 +02:00

Make sidepane pinned by default

This commit is contained in:
Toby Zerner
2015-03-30 10:25:02 +10:30
parent 7e889ef50d
commit 30ca91d12e

View File

@@ -19,7 +19,7 @@ export default Ember.Mixin.create({
// Whether or not the pane is always visible on screen, even when the
// mouse is taken away.
panePinned: localStorage.getItem('panePinned'),
panePinned: localStorage.getItem('panePinned') !== 'false',
// Disable the paneable behaviour completely, regardless of if it is
// paned, showing, or pinned.
@@ -51,7 +51,7 @@ export default Ember.Mixin.create({
},
togglePinned: function() {
localStorage.setItem('panePinned', this.toggleProperty('panePinned') || '');
localStorage.setItem('panePinned', this.toggleProperty('panePinned') ? 'true' : 'false');
}
}
});