mirror of
https://github.com/flarum/core.git
synced 2025-08-03 15:07:53 +02:00
Make sidepane pinned by default
This commit is contained in:
@@ -19,7 +19,7 @@ export default Ember.Mixin.create({
|
|||||||
|
|
||||||
// Whether or not the pane is always visible on screen, even when the
|
// Whether or not the pane is always visible on screen, even when the
|
||||||
// mouse is taken away.
|
// mouse is taken away.
|
||||||
panePinned: localStorage.getItem('panePinned'),
|
panePinned: localStorage.getItem('panePinned') !== 'false',
|
||||||
|
|
||||||
// Disable the paneable behaviour completely, regardless of if it is
|
// Disable the paneable behaviour completely, regardless of if it is
|
||||||
// paned, showing, or pinned.
|
// paned, showing, or pinned.
|
||||||
@@ -51,7 +51,7 @@ export default Ember.Mixin.create({
|
|||||||
},
|
},
|
||||||
|
|
||||||
togglePinned: function() {
|
togglePinned: function() {
|
||||||
localStorage.setItem('panePinned', this.toggleProperty('panePinned') || '');
|
localStorage.setItem('panePinned', this.toggleProperty('panePinned') ? 'true' : 'false');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user