]> git.proxmox.com Git - pve-manager.git/commit
ui: state provider: try to find string encoded values in dictionary
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 17 May 2021 16:21:50 +0000 (18:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 17 May 2021 16:21:52 +0000 (18:21 +0200)
commitd6b661874caaee6579a8540f9680007d086eb84e
tree86296658b65e562a5794073551b7d4a8efa7a272
parent2f6cf848b6f822c22e7663f22a96c62f9e9d1590
ui: state provider: try to find string encoded values in dictionary

My browser here is pretty fixated on the history, and due to some
unknown reason I got a history fragment string like:
`#v1:=0:=18:=4:::::::` so the "hashes" got into strings, and I was
not able to move them back.

Adding a match here to always try reverse-mapping the hash to the
original input helps to fix that here.

We'd only run into issues if we'd use a integer-string as id, but we
really don't (IIRC not even allowed in extjs) so this is safe to do.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/StateProvider.js