mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 10:49:00 +02:00
Mark sidebar and navbar as permanent between Turbo history navigations.
This commit is contained in:
parent
5ec87f911b
commit
e26f6e5394
3 changed files with 22 additions and 2 deletions
|
@ -10,6 +10,11 @@ export default class extends TreeController {
|
|||
_storage_key;
|
||||
|
||||
connect() {
|
||||
//Check if the tree is already initialized, if so then skip initialization (useful when going back) to in history using Turbo
|
||||
if(this._isInitialized()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const default_mode = this.element.dataset.defaultMode;
|
||||
|
||||
this._storage_key = 'tree_' + this.element.id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue