to save the columns/layouts in the browsers local storage
also change width to string (or else jslint complains)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
since we now have the client settings, we do not need this anymore
also rename the stateid to 'grid-resource'
(we want to establish a convention to differentiate between saved local
storage items)
the whole saveCurrentState logic was not really necessary, so we can drop this too
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
since we get the string "0" from the backend if the line is in the
groups.cfg, we have to set the field to type boolean, or the string will
always be interpreted as true
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
insideUpdate protects for a endless loop which gets caused if the sm
selection change callback updates vmidField which then triggers the
vmidField change callback which updates the selection model again,
and the circle starts again.
As this construct is rather confusing when looking first at the code
replace it with a temporary suspend of the change event during the
vmidField update.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This patch adds curves to use with TLS_ECDHE_* ciphers
They will automatically be used be the proxy as they are
in the HIGH ciphersuite.
This patch uses the prime256v1 curve, which should be supported
by most clients. openssl 1.0.1 only supports a single curve.
This also forces the use of new DHE and ECDHE keys on every
handshake. This does not seem to have an impact on performance.
Signed-Off-By: Jos Ewert flami@flami.net
this adds a subclass of Ext.form.field.Number with the settings for
Integers (allowDecimals: false and allowExponential: false and default
step size 1)
and use it where we only accept integers
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
this patch moves the onlineHelp ids into the javascript classes, instead
of defining them where we use the classes
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
also the correct value for haGroupSelector is [] not '',
with this, the reset button works correctly
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
The 'max_reloacte' and 'max_restart' properties can be set via CLI
and API for about a year, expose them to the user alsow via web
interface
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
values['delete'] is always empty here, plus the code was buggy for
the case that it wasn't:
values['delete'] = values['delete'] ? ',group' : 'group';
^^^
always overwrites values['delete'], even if not empty
So just drop it here.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
this patch fixes that moving your mouse over the top help button or the
settings button, does not change your mouse cursor like on every other
link/button/etc
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
this patch adds a custom progressbar widget which changes color,
depending on the value, and adds cpu/memory usage and uptime as columns
to the nodeview
altough those columns are missing in the model/api call, this works , because we
inject the data in our data collectin loop and having the fields not in
the model, causes the store not to overwrite them
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
this adds the panels to the cluster dashboard
to get the values, we add a listener to the PVE.data.ResourceStore
and iterate over all elements, collecting the data
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
this patch changes a few things:
* instead of having the nodeview in full size, it is just a panel in
the summary, similar to node/qemu/lxc summary
* creates the store in the summary component, and not in the nodeview,
because we need it later
* makes most of the config options of the nodeview declarative, gets
rid of the initcomponent
* changes the 'online' yes/no to a check/x
* makes the panel resizable with tools
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
this adds a guests panel which will show the running/stopped/etc. guests
in the cluster dashboard
to update this, we have to call updateValues with the data
we do this, because in the component above, we will collect the data
after a load event of the PVE.data.Resources store, to avoid going
through this (sometimes large) list more than once
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
this adds a dc health panel which will be used in the cluster dashboard
it shows the overall cluster status (or simply ok if no cluster defined)
with a symbol and text
then it shows the number of online and offline nodes
optionally it shows then the overall ceph health
of the connected node
if the api call for ceph fails 3 times, we stop it
the ceph status is hidden by default
for updating the cluster and node status, we have to call
updateStatus as a callback from a store which
loads the /api2/json/cluster/status call
we do not have our own store for this, because we will be using the store
which handles this in the component above
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
this adds a gaugeWidget panel, which will be used for the
cluster dashboard
it shows a title, a gauge (a half circle) with the percentage
in the center
over 59% the color is yellow,
over 89% the color is red
also you can add a text to the bottom
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>