]> git.proxmox.com Git - proxmox-backup.git/commit
ui: add search box to DataStore content
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 23 Jul 2020 11:03:50 +0000 (13:03 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 27 Jul 2020 10:51:11 +0000 (12:51 +0200)
commit6d55603dccc23293e0223c51239aad9540b16152
tree554b70cca0316cafd88dfaedcd0a2bdb3a7952b3
parent3e395378bca5a844b2c820750cd57e4f2bfbacca
ui: add search box to DataStore content

which searches the whole tree (name & owner)

we do this by traversing the tree and marking elements as matches,
then afterwards make a simple filter that matches on a boolean

worst case cost of this is O(2n) since we have to traverse the
tree (in the worst) case one time, and the filter function does it again

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