129 Commits

Author SHA1 Message Date
Emmanuel Kasper
548b29644d adapt KVComboBoxes to pass store items using 'comboItems' parameter
we used a custom 'data' property to pass around the items to
add to the store, but this property is now used by ExtJS to
store content for the component template

also move to declarative style, saves lines
2016-03-04 06:17:25 +01:00
Dietmar Maurer
c3bf50ab2d copy ceph/Status.js from manager to manager6 2016-03-04 06:14:50 +01:00
Dietmar Maurer
e896edc5eb copy ceph/Pool.js from manager to manager6 2016-03-04 06:14:50 +01:00
Dietmar Maurer
828909c74c copy ceph/OSD.js from manager to manager6 2016-03-04 06:14:49 +01:00
Dietmar Maurer
618a10688c copy ceph/Monitor.js from manager to manager6 2016-03-04 06:14:49 +01:00
Dietmar Maurer
6389b2db89 copy ceph/Disks.js from manager to manager6 2016-03-04 06:14:49 +01:00
Dietmar Maurer
fd8343b7f8 copy ceph/Crush.js from manager to manager6 2016-03-04 06:14:49 +01:00
Dietmar Maurer
de42b00640 copy ceph/Config.js from manager to manager6 2016-03-04 06:14:49 +01:00
Dominik Csapak
5fcb5c8c6f ext6migrate: fix selection of ComboGrid
if one selected an item in a ComboGrid which was already selected,
the ComboGrid would not close (as expected), this patch fixes this

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-04 06:13:22 +01:00
Dietmar Maurer
86afc79cf6 copy lxc/Summary.js from manager to manager6 2016-03-03 10:51:32 +01:00
Dietmar Maurer
247626ce93 copy lxc/StatusView.js from manager to manager6 2016-03-03 10:51:32 +01:00
Dietmar Maurer
e9d5c5d92c copy lxc/SnapshotTree.js from manager to manager6 2016-03-03 10:51:32 +01:00
Dietmar Maurer
c38cf3e538 copy lxc/Snapshot.js from manager to manager6 2016-03-03 10:51:31 +01:00
Dietmar Maurer
4a5ebdbb99 copy lxc/Resources.js from manager to manager6 2016-03-03 10:51:31 +01:00
Dietmar Maurer
a0cf1403be copy lxc/ResourceEdit.js from manager to manager6 2016-03-03 10:51:31 +01:00
Dietmar Maurer
48fb924ba8 copy lxc/Options.js from manager to manager6 2016-03-03 10:51:31 +01:00
Dietmar Maurer
61d7dac2ab copy lxc/Network.js from manager to manager6 2016-03-03 10:51:31 +01:00
Dietmar Maurer
2ebb346ed2 copy lxc/MPResize.js from manager to manager6 2016-03-03 10:51:31 +01:00
Dietmar Maurer
d7d9d2f8aa copy lxc/DNS.js from manager to manager6 2016-03-03 10:51:31 +01:00
Dietmar Maurer
e2aed6d298 copy lxc/CreateWizard.js from manager to manager6 2016-03-03 10:51:31 +01:00
Dietmar Maurer
aa6127aa8f copy lxc/CmdMenu.js from manager to manager6 2016-03-03 10:51:31 +01:00
Wolfgang Bumiller
840d2a1506 firewall: add ipfilter option 2016-03-03 09:45:33 +01:00
Emmanuel Kasper
d622e39c61 fix display cluster status in Datacenter Panel
use getData() instead of accessing the intern raw value
2016-03-02 12:38:25 +01:00
Emmanuel Kasper
6cfec58f26 fix Timezones window
Ext.regModel() was removed from the framework
rewrite the store in declarative style with inline data
2016-03-02 12:37:16 +01:00
Dominik Csapak
1aad83a320 ext6migrate: enable firewall and subscription tabs
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-02 06:15:19 +01:00
Dominik Csapak
704a6e3d61 ext6migrate: fix subscription tab
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>
2016-03-02 06:15:01 +01:00
Dominik Csapak
f9d1e2f2c0 ext6migrate: change applyIf to apply
in the option view, change the applyIf to apply to
correctly show the 'Edit' button

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-02 06:13:16 +01:00
Emmanuel Kasper
4cf02a6a14 move component properties to prototype body
this is needed for 'displayField'

also remove redundant truthiness test which is also
taking place at the beginning of setNodeName()
2016-02-29 16:52:27 +01:00
Emmanuel Kasper
f8cde33a63 adapt BondSelector to our ExtJS6 KVComboBox parameters 2016-02-29 16:52:12 +01:00
Emmanuel Kasper
9173b9d3c5 push column items individually
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
2016-02-29 16:52:01 +01:00
Emmanuel Kasper
5fd7ef775c use 'refresh' event to reload the grid after the store content has changed
this fixes the problem that buttons and grid contents were not updated
after a service stop/start
2016-02-29 15:37:13 +01:00
Emmanuel Kasper
6155252f27 reload stores of tabpanel children on 'activate' event 2016-02-29 15:36:49 +01:00
Emmanuel Kasper
ce6805ae2f enable more node panels 2016-02-29 15:34:57 +01:00
Emmanuel Kasper
694d9d4cbc move tabs of a sub tabpanel to the left by default
This takes a bit of screensize, but is fine as long as the browser
horizontal screen size is at least 1280 px ( 92 % of desktop users in 2016
according to StatsCounter)
Still usable for the remaining small displays, but horizontal scrolling
is needed for grids with a lot of columns.

Moving the sub tabs to the top left provides a minor usability
improvement as all controls are now grouped together in the same
screen region.
2016-02-29 15:31:41 +01:00
Dominik Csapak
7515e62236 ext6migrate: fix model behaviour for KVComboBox
we used an empty value for the Key-Value ComboBox for defaults.
With extjs6, if the idProperty of a model is empty, they generate
a name for it, which breaks our logic for submitting
(currently we checked if this is empty, and send a delete command
to our api)
instead, we use the value 'default' and check for it when we submit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-29 15:27:15 +01:00
Dominik Csapak
a2d6bf2b56 ext6migrate: fix fullscreen for noVNC
add allowfullscreen to iframe code, makes novnc fullscreen work

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-29 12:33:43 +01:00
Dominik Csapak
8ddf32d5c6 ext6migrate: enable update and console tab for node
since the console is working again, we can activate the
console tab and the update tab for nodes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-29 10:51:00 +01:00
Wolfgang Bumiller
afdc45f125 firewall: add option to allow router advertisement 2016-02-27 10:26:31 +01:00
Dominik Csapak
f5e339c5a8 fixing trailing whitespaces and jslint type confusions
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-27 09:31:09 +01:00
Dominik Csapak
994e2d86fc ext6migrate: update vncconsole and remove java applet code
includes the following fixes:
 * remove all code related to the old java applet vnc client
   (we do not use this anymore)
 * move static configuration to class definition
 * use Ext.ux.IFrame instead of widget.uxiframe (to be consistent)
 * change listener from show to activate (for browser refresh)
 * change deprecated autoScroll to scrollable
 * remove novnc option from openVNCViewer function,
    since we do not need this option anymore

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-27 09:27:15 +01:00
Dominik Csapak
ed15db794d ext6migrate: update Ext.ux.IFrame code in Toolkit.js
update to current code from framework
makes it working again

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-27 09:26:28 +01:00
Emmanuel Kasper
0e3dc56d62 fix HA Group Selector display
displayField must now be set in class body, take opportunity to move out
other config properties from initComponent()
2016-02-26 07:39:53 +01:00
Emmanuel Kasper
ad6569d8b2 load the store later, move non-dynamic properties and methods to class body
this fixes two problems:
 * we were loading the store before the parent ComboGrid class could put
  a listener on the load event
  * displayField must now be set in class body, take opportunity to move out
  what we can of the mega initComponent()

this two fixes allow the HA GroupEdit  Window to properly display the
existing members of a HA Group when editing group membership
2016-02-26 07:38:50 +01:00
Emmanuel Kasper
df1419e813 reload stores of tabpanel children on 'activate' event
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
2016-02-26 07:38:17 +01:00
Emmanuel Kasper
a0b5883841 change xtype name to follow ExtJS and our own conventions
this also fixes the problem that the method
Ext.ComponentQuery.query() was outputting a warning
since it did not know if it should perform a  lookup
for a class name or a xtype
2016-02-26 07:37:29 +01:00
Dominik Csapak
652b021d12 ext6migrate: enable syslog and taskhistory tabs
enables the tabs for the nodes view

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-26 07:33:07 +01:00
Dominik Csapak
09a727f030 ext6migrate: fix LogView
fixes the LogView (for Tasks and Syslog) including:
 moving static configuration to class definition
 changing deprecated bodyStyle: padding to bodyPadding
 removing chrome scrolltop hack (does work properly now, and hack
  did not work anymore)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-26 07:32:43 +01:00
Dominik Csapak
b9dc40e333 ext6migrate: change applyIf to apply in TaskViewer
this fixes the window for tasks (previously the content was not
correctly sized)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-26 07:31:39 +01:00
Dominik Csapak
937be156aa ext6migrate: fix Task History for nodes
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>
2016-02-26 07:30:21 +01:00
Emmanuel Kasper
b46a0e4ed4 Revert "ext5migrate: do not set a custome idProperty for the KeyValue model"
This reverts commit 3150236aa5ebed6565c6eaf64126bb1195693396.

Without using an idProperty in the KeyValue model, the id of each
store item is autogenerated, and the DiffStore always recreate the whole
store content every second instead of updating the fields where values
have changed. Recreating the whole store content makes the
Node Summary View flicker, as the order of items in the store change
after each reload.

Testing shows that reversing this commit do not break anything else.
2016-02-24 11:05:34 +01:00