]> git.proxmox.com Git - pve-manager.git/commit
ui: storage: find the correct storage record
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 26 Nov 2020 07:58:25 +0000 (08:58 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 26 Nov 2020 09:52:07 +0000 (10:52 +0100)
commit57f6c79b0805c66cb6228646351e99a61cdcf1b4
treec3390a03e76abeecc32ccfab4bc8c7284fadc9da
parenta6f6ed5a062b86ca0f9eab2264ef33df15ca8739
ui: storage: find the correct storage record

by default, findRecord only anchors at the beginning, e.g.
findRecord('id', 'foo');
could find either an entry with id 'foo', 'foobar', 'foobaz', etc.

extend the call to set 'exactMatch' to true, else we sometimes
used the content types of storage e.g., 'local-lvm' for showing
the panels for 'local'

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