]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
panel/acme-domains: fix cyclic dependency in view model
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 Mar 2021 16:24:09 +0000 (17:24 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 Mar 2021 16:26:29 +0000 (17:26 +0100)
commit9ae7fe04e260c40a6dba217ebc0031dd5261c83d
tree73479e42b54f891f6ff0a617bd749c3ce52fb97e
parentff9dbaa7069fa9abd91582493558720c6910b086
panel/acme-domains: fix cyclic dependency in view model

A view model forumla cannot depend on itself, as that is a dependency
cycle.

In this specific case we can just drop the `hasUsage` forumla entry
completely, it is bogus as it was just returning its value, and that
is actually taken care of by the `hasUsage` data binding.

The debug build of ExtJS throws an exception on such cycles, the
release build does not cares to much and seems to do the right thing
already here.

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