The rationale is that things like 11.4d or 22.6h is hard to parse for
humans (base 10 to base 60 or base 24 conversion). So try to emulate
what a human would tell another human to pass a duration information
along with reasonable good but not high accuracy.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Allows having only the common ones here, and more special ones in the
per product code. Sometimes there are simple worker IDs which can
have a very different meaning for one product, with this that clash
can be resolved in a standardized way.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
the calling code did require that authOK returns the cookie if
there is a valid one
make it now very explicit that the cookie gets returned instead
of using implicit short-circuit behaviour
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
return false on authOK when the ticket is a tfa ticket
(starts with PVE:tfa!)
when a user now loads the page with only a tfa ticket, it shows the
login window again
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
vlan-raw-device && vlan-id field are only
enabled if interface name is different than interfaceX.Y
I have added a listener on iface,
to enable them live if user want a custom name for vlan interface
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
With u2f having a ticket doesn't mean we're logged in yet,
so we need to be able to distinguish between the two.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
we have now have two suspend modes:
* pause: leave the process running and pause the guest cpu
* hibernate: save the state (and memory) to disk, stop the vm
since the meanings of suspend and hibernate are too close,
we change the old 'suspend' to 'pause'
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
when the popup blocker is active, nw is undefined and nw.focus() throws
an error and the touchend event is not finished, causing
extjs to retry the touchevent and click handler, which tries to open
a popup which gets blocked here, and so on
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
this should not be here, rather where we include the language files
(like in pve), because this is not ecma conform and behaves very
different in different browsers (e.g. safari ignores the if check
completely and simply uses that function definition)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
since the Task is in the widget-toolkit, passing
a renderer/list a few levels of components down is not nice
and there are not *that* many strings in the task_desc_table,
we put it here, so that either pve and pmg can use them