]> git.proxmox.com Git - pve-manager.git/commit
ui: content view: fix use of external static tbar declaration
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 8 Mar 2024 14:33:20 +0000 (15:33 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 14 Mar 2024 14:17:43 +0000 (15:17 +0100)
commit3dd9c5c8088838e9938b6c43fff004f2db5520bb
tree57f919d333a447188c705c1fbe8c4f7bdda9c26a
parent1826922d497186087cd0f93c0c556510ed5ac1fd
ui: content view: fix use of external static tbar declaration

when using a declarative `tbar` when instantiating a ContentView,
it is a reference and gets pushed into every time.

instead, copy the given tbar into a local variable and use that

this fixes an issue that we push the same components (e.g. search) into
the toolbar whenever we open a view with a new ContentView
(when using declarative tbar)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/storage/ContentView.js