]> git.proxmox.com Git - pve-manager.git/commit
ui: storage backup view: Update remove button on protection change
authorChristoph Heiss <c.heiss@proxmox.com>
Thu, 19 Jan 2023 09:56:22 +0000 (10:56 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 19 Jan 2023 17:20:34 +0000 (18:20 +0100)
commit73e1cfa94c20ed2c3a9cceb1c260c4ddd8590c00
tree0c13f19997fb6e1e4bf63cdb7f742f21b03b2034
parent92df2742f53e723f9a0c24d593cb6e21266deb13
ui: storage backup view: Update remove button on protection change

Currently this works in the backup view for containers/VMs, but not in
the storage backup view. Implement that for the latter part too.

Uses the callback functionality of the load() method of the store to
properly update the UI as soon as the loading has finished.
While at it, refactor the same thing in the grid backup view as well,
removing the current hack in the process.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
www/manager6/grid/BackupView.js
www/manager6/storage/BackupView.js