1046 Commits

Author SHA1 Message Date
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
Wolfgang Link
60d31ad8d3 Remove content type Container from GlusterFS 2016-03-02 17:16:29 +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
Thomas Lamprecht
db2dd0e439 web-syslog: add date span selection
This allows the user to only show logs from a specific date span.
For that two date picker and a 'Update' button were added to the
header bar.

For the until date we assume always 23:59:59 o'clock, as witouth
a specific time journalctl assumes 00:00 which would result in an
empty log if we only wanted to look at todays log.

As the LogView is shared with others (e.g. ceph log) use an boolean
variable to set if we want to show those date pickers)

Fixes timeout when the user has a long uptime and or persistent logs
2016-03-02 06:25:33 +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
Wolfgang Bumiller
35491b4a27 jslint...
*sigh*
2016-02-24 16:33:55 +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
Emmanuel Kasper
b6212157c5 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
be2c141ee6 ResourceEdit.js: use correct filed label 2016-02-23 16:46:15 +01:00
Wolfgang Bumiller
febadb4b13 lxc: disable edit button for non-root users for bindmounts 2016-02-23 16:37:43 +01:00
Wolfgang Bumiller
fb104806c5 lxc: use mount point editor in create wizard 2016-02-23 16:36:57 +01:00
Wolfgang Bumiller
ac68fa6e0e lxc: create/edit/remove mountpoints 2016-02-23 16:36:23 +01:00
Wolfgang Bumiller
853be40b8e parser: perform mountpoint classification 2016-02-23 16:34:16 +01:00
Emmanuel Kasper
3eb70ea3b5 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
e3affd3cc3 parser: parseLxcMountPoint, printLxcMountPoint 2016-02-22 16:31:27 +01:00
Dominik Csapak
736d522248 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
5ffecf8c82 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
dbe1c56679 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
9e086660fc 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
1f280b1ac0 firewall: add enable ndp option 2016-02-19 10:10:51 +01:00
Wolfgang Bumiller
13b5f226bb 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
963e9e5299 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
6d3d3473a5 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