mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 04:47:08 +08:00
Make sidepane pinned by default
This commit is contained in:
parent
09089ddbf8
commit
f0380153de
@ -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');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user