]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
node: repo: avoid using IDs on elements, as that breaks easily on clusters
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 3 Jul 2021 14:06:14 +0000 (16:06 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 3 Jul 2021 14:06:17 +0000 (16:06 +0200)
commitfaacb77fb428734b2175d16e93d451c9d662417f
tree11a15216347384cb7b366d0df5d8ee5f50303486
parent99829a9e783fab213a80109f5efeb43a1696de00
node: repo: avoid using IDs on elements, as that breaks easily on clusters

Anything where more instances can exist, even if only for a very
short time, must NOT use `id` as that needs to be unique in all
current instances of components/elements of the whole gui.

Here it broke most of the gui when switching between node, as the new
nodes repo gui was instantiated before the old ones was completely
destroyed, so there where (at least) two elements with the same id ->
💥 boom.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/node/APTRepositories.js