]> git.proxmox.com Git - pve-manager.git/commit
ui snapshot tree: express formulas more concisely
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 30 Jan 2020 18:34:08 +0000 (19:34 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 30 Jan 2020 18:34:35 +0000 (19:34 +0100)
commitb9c780c5a8a63f9c80bf6a8f680be04017a41f53
treedbeaf07db410b339fcb7cc8fda339abd0e3bad7f
parent9a6b894fcc00e46ec3274bd4253ff16678d8bcb2
ui snapshot tree: express formulas more concisely

Use arrow functions to bring them in a more simple boolean expression
style. Further, we can reuse the "isSnapshot" formula in the
"canRollback" and "canRemove" ones.

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