1046 Commits

Author SHA1 Message Date
Wolfgang Bumiller
0351a06696 PendingObjectGrid hasPendingChanges optimization
Break out of Ext.Array.each early by returning false when
we found a pending change.
2016-01-28 10:27:29 +01:00
Emmanuel Kasper
dc7505c2aa ext6migrate: fix picker dropdown on ViewSelector initial load
This fixes a nasty bug where an initial click on the  ViewSelector
trigger would display the picker but hide it immediatly afterwards.

What was happening behind the scene, is that without queryMode 'local',
the store bound to the picker was loaded on each picker display.

Loading the store would then trigger our onLoad() override in ToolKit.js
which called setValue(), which fired a bunch of unwanted events
including 'collapse'.

It is safe here not to call onLoad() to set an initial value, because
the initial value is set in initComponent() (value: groupdef[0][0])
2016-01-27 16:53:12 +01:00
Wolfgang Bumiller
a5d21bddb6 gui: preserve extra cpu options when changing CPU type 2016-01-27 16:44:59 +01:00
Emmanuel Kasper
76f276f283 replace object creation via 'new' with ExtJS methods
This makes the code more homogeneous and allows us to use the ExtJS
class autoloader in the future if we want (autoloader idea: ExtJS tries to load the
JS class file over HTTP based on the class name, no need to maintain a list
of includes)
2016-01-27 09:18:15 +01:00
Emmanuel Kasper
0f3d4eb11e ext6migrate: fix ressource tree filter selection
the selection do not return an array but a single 'records' object
so records.length is always undefined
2016-01-27 09:17:53 +01:00
Emmanuel Kasper
fda3053325 ext6migrate: move static fields to class body
Some fields  need to be processed by initConfig(),
which will be run before initComponent() in the
component lifecycle.

This fix the problem of the Selector default value
whihc was not loading.
2016-01-27 09:16:58 +01:00
Dietmar Maurer
f5cf79afc2 add correct display text for lvmthin and drbd storage type 2016-01-27 05:56:30 +01:00
Emmanuel Kasper
6e202c67ee ext6migrate: fix a long running bug where a logout from the GUI would break the workspace
If we pass true to the removeAll() , ExtJS6 will try to erase the leafes of a tree,
and then try to to iterate throuch these leaves in onNodeRemove() ( this obviously do not work)

The true parameter does not seem to be needed anyway anymore.
After a call to removeAll, the childNodes[] property of the rootNode is empty
2016-01-26 10:54:32 +01:00
Emmanuel Kasper
027ed062d3 Comment out missing/broken JS classes so we can select nodes in the left ressource tree with ExtJS6 2016-01-26 10:53:44 +01:00
Dietmar Maurer
208c45ec0b add description for vztemplate and vzclone tasks 2016-01-22 11:24:32 +01:00
Dietmar Maurer
ac1e18f76b lxc GUI: add 'Convert to template' 2016-01-22 11:24:31 +01:00
Dietmar Maurer
31dbe7d5d1 update translation files
We try to avoid duplicate translation by using {0} instead if 'VM {0}'
and 'CT {0}'.
2016-01-22 11:24:31 +01:00
Dietmar Maurer
8e4e90d510 copy storage/Browser.js from manager to manager5 2016-01-22 11:24:31 +01:00
Dietmar Maurer
2599257f3e copy qemu/Config.js from manager to manager5 2016-01-22 11:24:30 +01:00
Dietmar Maurer
62df569c76 copy node/Config.js from manager to manager5 2016-01-22 11:24:30 +01:00
Dietmar Maurer
944808390f copy lxc/Config.js from manager to manager5 2016-01-22 11:24:30 +01:00
Emmanuel Kasper
9bcb88aaa2 Apply listConfig parameters when the picker is created, not when the component is created.
This fix the problem that multiple ComboGrids were displaying the same listConfig.
2016-01-22 11:24:29 +01:00
Dietmar Maurer
c6776f3c38 cleanup previous patch 2016-01-22 11:24:29 +01:00
Emmanuel Kasper
57277d9428 ext6migrate: Update our ComboGrid component to work with ExtJS6
Instead of extending the framework ComboBox, we extend the abstract
parent class Picker, so we don't rely on private methods ( and hopefull survive the
next ExtJS upgrade )

Usability improvement:
The selection model is now a checkboxmodel, which makes more clear to the user that
we can select more than one element in the list.
2016-01-22 11:24:28 +01:00
Wolfgang Bumiller
81437b3d91 add Haswell-noTSX and Broadwell-noTSX cpu types 2016-01-22 11:24:28 +01:00
Dietmar Maurer
6299196635 add hungarian translation 2016-01-22 11:24:26 +01:00
Emmanuel Kasper
f3dc6957d6 Do not try to enforce a Picker size manually, let the framework do it
The Picker of the ComboBox, has by default a maxHeight of 300 px. If the list of elements is bigger that 300 pixels, then a scrollbar will be added.
This behaviour was broken with ExtJS4, but now works correctly with ExtJS6.
2016-01-22 11:24:25 +01:00
Emmanuel Kasper
16251ba9f6 Ext6migrate: move static configuration from instantiation time to class declaration time.
This fixes the problem that this ComboGrid was displayed with an empty value
( similar the to the Keyboard Selection and Realm Selection in the login window)
2016-01-22 11:24:24 +01:00
Dietmar Maurer
b428486027 add qemu BIOS option 2016-01-22 11:24:24 +01:00
Emmanuel Kasper
f74e271ee5 Ext6migrate :remove unused column ID
An component id 'comment' is already defined for the column Comment of UserView.js causing here a conflict.
It seems ExtJS6 is more stringent about that than ExtJS4.
2016-01-22 11:24:23 +01:00
Emmanuel Kasper
eac8899c02 Ext6migrate: Fix selection mode combobox for backup 2016-01-22 11:24:22 +01:00
Emmanuel Kasper
1ac8614953 Listen to activate / deactivate events to start the background store refresh
This fixes the problem that a user triggerred F5 was not displaying the
content of the Cluster Log Tab
2016-01-22 11:24:22 +01:00
Emmanuel Kasper
315c6f468f ext6migrate: remove redundant code to set the default active tab
If the default activeTab is *undefined* and *not* null, activeTab defaults to 0,
so we don't need to set this explicitely.

dug from ExtJS tabPanel:
activeTab = me.activeTab !== null ? (me.activeTab || 0) : null;
2016-01-22 11:24:21 +01:00
Emmanuel Kasper
66162fe4a9 ext6migrate: listen to 'activate' events for panels inside a tabpanel
Using ExtJS6 a browser refresh (F5) do not send the 'show' event which we use to display the store as it did with ExtJS4.

At the momment only for tabs inside the datacenter tabpanel, since node and lxc tabpanels are not yet in manager6/
2016-01-22 11:24:20 +01:00
Alexandre Derumier
0b19ac6f8d add qemu agent gui option
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2016-01-22 11:24:19 +01:00
Emmanuel Kasper
030910b2b0 Allow email adresses with a top level domain of up to 63 characters
Reapply fix for  https://bugzilla.proxmox.com/show_bug.cgi?id=716
which was missing in manager6/ directory
2016-01-22 11:24:14 +01:00
Emmanuel Kasper
27c3bc7fc6 Correct whitespaces and comment non obvious class properties 2016-01-22 11:24:14 +01:00
Emmanuel Kasper
01c33792f9 ext6migrate: move class static properties out of initComponent()
This fixes the Auth realm selection while login with ExtJS6
2016-01-22 11:24:13 +01:00
Emmanuel Kasper
dab1eabac7 ext6migrate: move static class properties out of initComponent()
Besides fitting more with the declarative style of ExtJS, this has the
interesting side effect of allowing comboboxes to work with ExtJS6
2016-01-22 11:24:13 +01:00
Emmanuel Kasper
9ad8f2a462 ext6migrate: force an empty array as default value for filters
Without this, filters.add() in line 73 file fails
2016-01-22 11:24:13 +01:00
Emmanuel Kasper
48b60bfa30 ext6migrate: Replace deprecated function which is missing in Ext6
See http://docs.sencha.com/extjs/5.1/5.1.0-apidocs/#!/api/Ext.container.Container-method-doLayout

This allows the pve manager to load
2016-01-22 11:24:12 +01:00
Emmanuel Kasper
cad206bfa2 Switch to triton theme as default theme in ExtJS6 2016-01-22 11:24:12 +01:00
Dietmar Maurer
84c992f741 remove old extJS5 files 2016-01-22 11:24:11 +01:00
Dietmar Maurer
bd5d277292 rename manager5 to manager6 2016-01-22 11:24:10 +01:00
Dietmar Maurer
f9f49b6077 add extJS6 sources to git repository 2016-01-22 11:24:02 +01:00
Emmanuel Kasper
316e523568 update build infrastucture to be able to develop with Ext6 2015-11-13 07:08:04 +01:00
Dietmar Maurer
8d2b06733c Sytem Report: place download button at bottom/right 2015-11-06 10:19:29 +01:00
Emmanuel Kasper
4591e1448c Add report modal window, containing pvereport content
Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
2015-11-06 10:07:17 +01:00
Thomas Lamprecht
20bbfc8b90 Improve HA UI for users with restricted permissions
Only show edit dialogs for HA resources and groups when an user
has the privileges to edit them.
2015-10-30 16:11:42 +01:00
Dietmar Maurer
7d712ae6ac add Galician to GUI 2015-10-28 13:02:26 +01:00
Wolfgang Link
fa9a7f4e5b add mouint point to GUI 2015-10-28 11:42:00 +01:00
Wolfgang Link
67c6060271 add resize LXC Mountpoint at the GUI 2015-10-28 11:40:07 +01:00
Wolfgang Link
21ba65463f move Root Disk form Options to Resources and add icon for it 2015-10-28 11:37:31 +01:00
Wolfgang Link
b0bf0bca41 add icons to resources 2015-10-28 11:36:37 +01:00
Wolfgang Link
b017a92284 add swap icon for LXC resources 2015-10-28 11:35:51 +01:00