Commit Graph

43 Commits

Author SHA1 Message Date
Dominik Csapak
c2f6b28ff2 change minValue of VLAN tag to 2
since linux bridges have untagged traffic on vlan1,
we cannot set this value

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-08 16:58:48 +02:00
Dominik Csapak
546e0c5c22 change order of weekdays
to be consistent with the grid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-07 16:57:35 +02:00
Dominik Csapak
c0b9cfab96 add weekdays to comboitems at runtime
the translation of extjs has not been applied
at the time of class declaration, so that
the weekdays were always "Sunday", "Monday", etc.

when we declare them in initComponent, the translations are there

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-06 16:36:29 +02:00
Dominik Csapak
5ca0c804c6 remove displayfield height hack
this did not work anymore,
instead overwrite css for displayfields to have correct
min-height

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-06 16:29:35 +02:00
Thomas Lamprecht
beec97dc52 IPRefSelector: fix selection
move valueField and displayField to class config, else the value
of the selection wont show up when selecting it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-04-01 13:25:00 +02:00
Dominik Csapak
7688e9b5b0 move valueField and displayField to class config
if we do not do this, we cannot select items
(used in the clone window for example)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-01 13:22:43 +02:00
Dominik Csapak
be37a97e93 fix compression selection in backup window
we wrongly assumed, that no compression argument for
vzdump meant 'no compression', instead it means 'lzo'

this patch mirrors that behaviour on the gui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-31 17:10:10 +02:00
Dominik Csapak
04bd1b289a ext6migrate: add Haswell and Broadwell noTSX
these were missing in manager6

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-21 11:16:13 +01:00
Dominik Csapak
17c71f27d2 ext6migrate: Qemu Bios Selector fixes
add render function for Qemu Bios,
and change data to comboItems and '' to '__default__'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-21 11:15:50 +01:00
Dietmar Maurer
d53b4cc501 copy form/QemuBiosSelector.js from manager to manager6 2016-03-18 15:42:36 +01:00
Dominik Csapak
540fdc8b1e formatting and trailing whitespaces fix
fix format of commit
f2a6ce6cf1
(space before 'load')

also fix trailing whitespaces in those files

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-15 16:31:02 +01:00
Dominik Csapak
f2a6ce6cf1 ext6migrate: fix store load race condition
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>
2016-03-14 17:16:37 +01:00
Dominik Csapak
a9f712828d ext6migrate: fix trailing whitespaces
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-08 11:26:29 +01:00
Dominik Csapak
fbf6e7b412 ext6migrate: fix NodeSelector
the intial value of the node selector is null,
but when the store is loaded, it becomes an empty array

this triggers the 'dirtychanged' event and causes
the edit windows to enable the OK/Submit Button,
even when no change is made

this fix sets the default value to an empty array,
which fixes the mentioned behaviour

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-08 11:25:57 +01:00
Dominik Csapak
b4ea8af6cc ext6migrate: fix User and Role selector
we have to move the static fields to the class
configuration, otherwise the combobox does not work

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-08 11:25:17 +01:00
Dominik Csapak
871df3163a ext6migrate: fix typo in ContentTypeSelector
it is comboItems not comboItem

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-08 11:24:58 +01:00
Emmanuel Kasper
8f8e8a2e06 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
Dominik Csapak
ab6a78a23f 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
Emmanuel Kasper
4cd23745cd 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
bfb51ac5d0 adapt BondSelector to our ExtJS6 KVComboBox parameters 2016-02-29 16:52:12 +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
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
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
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
Emmanuel Kasper
3d990919c2 ext6migrate: set valueField as a class property
Also moves to full declarative style for
IPProtocolSelector, saves 11 lines of of boilerplate code
(works when the store is local and not pulled over the API)
2016-02-15 12:28:13 +01:00
Emmanuel Kasper
a263665b16 Ext6migrate: Update our ComboGrid component to work with ExtJS6
The ComboGrid combonent requires row-like selection something that
the default ExtJS Ext.selection.DataViewModel used for ComboBox cannot do.

This requires overriding the protected method onBindStore() where the selection
model is set.
2016-02-15 12:25:17 +01:00
Emmanuel Kasper
734b37950e ext6migrate: last fixes for firewall
listen to 'activate' event is needed because of framework changes,
similar to c0b3df6e34

ext6migrate: listen to 'activate' events for panels inside a tabpanel
2016-02-09 07:29:31 +01:00
Emmanuel Kasper
cee050e2a1 ext6migrate: fix minor selection bug in the ComboGrid
up to now we were only updating the picker selection when the picker
was created, which means that subsequent changes in the text field were
not propagated to the drop-down list

This patch creates a private syncSelection() method which is called each time
the picker is shown
This is roughly based on the ExtJS 4 ComboBox behaviour
2016-02-04 18:07:00 +01:00
Emmanuel Kasper
61bd788866 ext6migrate: fix IPRefSelector ComboGrid
The IPrefSelector ComboGrid can have selected values which are not backed
by the component store, ie the store only contains IP aliases, but
the ComboGrid can contain an IP adress not registered as an IP alias.

In that case we should not try to update the selection in the dropdown,
as the dropdown only knows about the component store.

Implementation is similar to the syncSelection() private method of the
ExtJS4 ComboBox.
2016-02-04 18:05:54 +01:00
Emmanuel Kasper
6cc50c8044 ext6migrate: push array elements separately 2016-02-04 18:04:53 +01:00
Emmanuel Kasper
56c500b917 ext6migrate: remove 'comment' id from Comment column in our tables
The use of this field raise an error with ExtJS6 because it is not
unique inside the application.
Removing this is safe, because we never query the Comment column
with an id.
2016-01-28 11:16:55 +01:00
Emmanuel Kasper
389b62b276 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
Emmanuel Kasper
820c770f04 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
Emmanuel Kasper
ed9ea0f563 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
cbaae277f0 cleanup previous patch 2016-01-22 11:24:29 +01:00
Emmanuel Kasper
effd0b0a8b 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
Emmanuel Kasper
2ad16f261f 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
a13842bf0e 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
Emmanuel Kasper
137f890ac7 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
f13d185b0f Correct whitespaces and comment non obvious class properties 2016-01-22 11:24:14 +01:00
Emmanuel Kasper
04ebb5c650 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
dd4a4e36ac 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
Dietmar Maurer
bac5bd135c rename manager5 to manager6 2016-01-22 11:24:10 +01:00