Commit Graph

1023 Commits

Author SHA1 Message Date
Emmanuel Kasper
bfb51ac5d0 adapt BondSelector to our ExtJS6 KVComboBox parameters 2016-02-29 16:52:12 +01:00
Emmanuel Kasper
a2f35eb2ea 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
eb22111997 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
b825d67314 reload stores of tabpanel children on 'activate' event 2016-02-29 15:36:49 +01:00
Emmanuel Kasper
2e81001c2a enable more node panels 2016-02-29 15:34:57 +01:00
Emmanuel Kasper
0a6d4e4cf6 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
f2782813cd 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
8fae05ea51 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
a74b7d9663 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
41380b4d5d firewall: add option to allow router advertisement 2016-02-27 10:26:31 +01:00
Dominik Csapak
b135fd08b3 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
c7218ab37d 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
06366d355b 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
7fc52dff20 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
9ccd656a61 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
55bc792342 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
d46faa2c06 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
e1eeed5a7e 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
f5783553d0 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
e1984cbd58 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
39e52cd44d 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
Wolfgang Bumiller
30164175f8 jslint...
*sigh*
2016-02-24 16:33:55 +01:00
Emmanuel Kasper
147a74c689 Revert "ext5migrate: do not set a custome idProperty for the KeyValue model"
This reverts commit c8e0699d5d.

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
Emmanuel Kasper
636247e253 Add documentation header for ObjectGrid.js
also enhance the documentation header for DiffStore and UpdateStore
2016-02-24 11:05:22 +01:00
Dietmar Maurer
69a30784fc ResourceEdit.js: use correct filed label 2016-02-23 16:46:15 +01:00
Wolfgang Bumiller
4a218fd947 lxc: disable edit button for non-root users for bindmounts 2016-02-23 16:37:43 +01:00
Wolfgang Bumiller
0c8efcf5d9 lxc: use mount point editor in create wizard 2016-02-23 16:36:57 +01:00
Wolfgang Bumiller
946eb8cd89 lxc: create/edit/remove mountpoints 2016-02-23 16:36:23 +01:00
Wolfgang Bumiller
ae8a861e5b parser: perform mountpoint classification 2016-02-23 16:34:16 +01:00
Emmanuel Kasper
851bd43cc2 rename component 'id' property to 'stateId'
ExtJS6 requires a stateId if we want to save the component state
(seems it is not autogenerated anymore from 'id')
this fix the selection of timeframes in the Summary View

also move properties out of initComponent()

also remove code which duplicates framework code:
setting stateEvents to 'select' will save the component state
after a selection by calling applyState()/getState() automatically
so we don't need to specify a callback ourselves and we don't need
the testChange() method since applyState() will be called anyway
2016-02-23 12:54:17 +01:00
Wolfgang Bumiller
b521e9729e parser: parseLxcMountPoint, printLxcMountPoint 2016-02-22 16:31:27 +01:00
Dominik Csapak
0ed3141561 add lvmthin to gui
this patch adds the ability to add existing lvm thinpools to the
storage configuration via the gui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-20 10:17:24 +01:00
Dominik Csapak
8bc518aca4 restrict lvm thin on qemu to storage type raw
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-20 09:49:45 +01:00
Dominik Csapak
2eb0767b3c add htmlEncode to various fields
and the same for manager6

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-20 09:48:23 +01:00
Dominik Csapak
3095fb1d08 add htmlEncode to various fields
add htmlEnode as a renderer to fields which lets you
input arbitrary strings, to prevent html tags

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-20 09:48:11 +01:00
Wolfgang Bumiller
bda8855a5b firewall: add enable ndp option 2016-02-19 10:10:51 +01:00
Wolfgang Bumiller
b73df817a3 Fix 895: don't drop the other processor values on load()
(Introduced in a5d21db: preserve extra cpu options)
2016-02-18 09:33:52 +01:00
Emmanuel Kasper
355ac51eb2 rename 'autoscroll' parameter to 'scrollable' following framework changes
also move static parameters out of initComponent() for proper panel
initialization
2016-02-17 15:26:49 +01:00
Emmanuel Kasper
63b9faaec1 temporary disable accessibility warnings
ExtJS6 adds accessibility (aria) support to the framework, which means
special handling of space/enter key and panels title, and a lot of
warnings / errors in the browser console

Aria support will be reenabled after all the components are migrated to
ExtJS6
2016-02-17 15:26:13 +01:00
Emmanuel Kasper
0a0ca36c94 remove redundant model definition
pve-services is already declared in ServiceView.js provoking
a namespace clash
2016-02-17 15:25:38 +01:00
Emmanuel Kasper
7621bfbf77 Fix initial loading of Node tabpanel:
* 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
2016-02-17 15:23:35 +01:00
Emmanuel Kasper
458e534cf2 Add class documentation header 2016-02-17 12:06:32 +01:00
Emmanuel Kasper
7a3691ac08 use 'refresh' event to reload the grid after filtering the store
'datachanged' event was not reloading the store with ExtJS5,
but 'refresh' does.
According to the API description 'refresh' seems to be what we need:
http://docs.sencha.com/extjs/5.1/5.1.0-apidocs/#!/api/Ext.data.AbstractStore-event-refresh

also remove deprecated readme ( ExtJS6 do not have the 'chunking' Grid Feature, and no bugs
seen in scrolling yet)
2016-02-17 12:06:14 +01:00
Emmanuel Kasper
64ece72558 Enable HA datacenter panel
No further changes needed here
2016-02-17 11:58:36 +01:00
Emmanuel Kasper
cfdc7ada3a Added UI elements for the backup job disabling function
Added a column in the datacenter backup job overview to see if a job
is enabled or not. Added checkbox to the input panel, which enables
or disables a job.
This closes bug/feature request 492.

This patch was missing in manager6
2016-02-17 11:57:36 +01:00
Dietmar Maurer
48e8c32a4d copy node/TimeView.js from manager to manager6 2016-02-17 11:55:32 +01:00
Dietmar Maurer
f48586ba86 copy node/TimeEdit.js from manager to manager6 2016-02-17 11:55:32 +01:00
Dietmar Maurer
fec1ae37a8 copy node/Tasks.js from manager to manager6 2016-02-17 11:55:32 +01:00
Dietmar Maurer
e5a857f788 copy node/Summary.js from manager to manager6 2016-02-17 11:55:32 +01:00
Dietmar Maurer
0bef095abc copy node/Subscription.js from manager to manager6 2016-02-17 11:55:32 +01:00