instead of having 2 panels,
we have now a splitted panel
with both config and crushmap
also drop the not needed [] around the alias
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
use new tree functionality of the configpanel
move services,time,syslog and shell under summary
move dns,firewall under network
move subpanels of firewall and ceph in the tree
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
this adds a new textinput field for the comment to the
network edit window and a new column for it in the
network view
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
before ECMA5 trailing commas in arrays and objects
are forbidden
in jslint this is an error and cannot be deactivated
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
fix various type confusion, for example:
items: {} and items: []
style: string and style: {}
also fix object['property'] access with
object.property
also fix /=/ with either '=' or /\=/ where appropriate
(/=/ can be confused with /= according to jslint)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
when switching from one node to another, we stop the wrong store
for the ceph tabs disk/monitor/pools because they have the same id,
so give them different ones
also the same applies for node/Services, fix it there too
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
this patch makes use of font-awesome for
lxc/qemu action buttons (start/shutdown etc.)
node actions buttons (restart/shutdown etc.)
and lxc/qemu cmdmenus
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
uses the new charts for the rrd graphs in the summary pages
and make them lazy (for minimal performance impact)
also correct some styling errors and move static fields
to the class definition
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
fix format of commit
f2a6ce6cf1
(space before 'load')
also fix trailing whitespaces in those files
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This is the ExtJS 6 version from commit
59e6da2d44
Same code as there.
A issue with the date picker which can be triggered by scrolling up
and then selecting a date will be fixed in ExtJS 6.0.2 (not yet
released), a workaround is in the next patch.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
when we click on a node/container/vm and quickly
click on something else, there might be a race condition,
where the store finished loading and we try to change
dom elements, which are not there anymore
so we change the store.on to me.mon, which
deletes the handler when the component is gone
in the logview panel we use API2Request, where
we cannot do this, so we check if the component
is destroyed manually
also we change this whenever we change a dom element
in a callback
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
on destroy, stop the store loading, else
we try to update dom elements which are not there anymore
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
fixes:
* update deprecated field
* move static configuration to class definition
* change applyIf to apply
* change system report handler to pass a function to
check_command (instead of the result of showReport)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
looks like ExtJS is not automatically flattening the array anymore
and items in a multidimensionnal array are not displayed with ExtJS6
lxc/Config.js is still commented because we haven't reached this part
in the upgrade, but fixing there too
Tabpanel reload -> send 'show' event -> reload child panel store
do not work with ExtJS6
but
Tabpanel reload -> reload child panel -> child send 'show' event ->
reload a grid store in the panel still works
so we don't blindly replace the 'show' events everywhere but only
when the event was expected by a direct child of a tabpanel
fixes include:
move static configuration to class declaration
use Ext.create instead of new for reload_task
use store.reload(), because store.filter() triggers no reload with
activated
remove store.guaranteeRange hack for infinite grid (works properly now)
since buffered: true is deprecated, use a BufferedStore instead
remove verticalScrollerType and invalidateScrollerOnRefresh
since this does not exist anymore in extjs6
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
* push initial components individually
* replace ifor the momment pvepanels with basic panels so we can at least load the first tabs
* group ceph component with previous push call as they require the same capabilities