2137 Commits

Author SHA1 Message Date
Dominik Csapak
833d2788a0 ext6migrate: prevent collapsing of snapshottree
instead of returning false in the 'beforeitemcollaps'
event (which is not fired in extjs6 anymore)

we set every element as not 'expendable'

this has thei nice side effect that there are no
'-' symbols anymore

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-18 16:07:50 +01:00
Dietmar Maurer
cd7c40e6b4 copy form/QemuBiosSelector.js from manager to manager6 2016-03-18 15:42:36 +01:00
Emmanuel Kasper
1474d03e8a Don't set a fix size for MPResize window
Due to the font increase of the Crisp theme,
the text was truncated

Instead of setting manually window size, let the items of the component
freely expend to what they need ( layout 'fit')
2016-03-17 10:45:48 +01:00
Emmanuel Kasper
b44fde6fa0 Enable four first tabs of Qemu Panel 2016-03-17 10:45:33 +01:00
Emmanuel Kasper
8bfc0ffe18 Fixes Hardware View gridPanel for ExtJS6
* uses Ext.apply() instead of applyIf(), because the parent class
 already set a toolbar to 'null', and we want to override that
 * use 'activate' event to redisplay content on page reload
 * use a managed listener via mon() so we ignore events from the store
 when the component is not displayed ( prevent race conditions)
2016-03-17 10:45:17 +01:00
Emmanuel Kasper
d9ea2a6d5e replace calls to new() with Ext.create() 2016-03-17 10:44:48 +01:00
Emmanuel Kasper
89f12991c5 initialize Diffstore sorters and filters with empty arrays
ExtJS expect this properties to be arrays of Filters/Sorters
objects, but sets them to null

setting an empty array here allows to push sorters/filters easily
later

This fix allows loading the Hardware Tab of the Qemu Panel
2016-03-17 10:44:39 +01:00
Emmanuel Kasper
d675f09dde Fix Qemu summary view:
* replace scrollable with autoScroll and move to prototype body
* use 'activate' to load store on F5
* do not set a height on the StatusView component: it hides some rows,
and the framework sets a good working default height
* replace deprecated 'rows' parameter in textareafield with
height in pixels
2016-03-17 10:44:10 +01:00
Dominik Csapak
e619c5cdb5 ext6migrate: remove trailing whitespaces
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-16 16:32:55 +01:00
Dominik Csapak
553ff17dc9 ext6migrate: make some (sub)tabs lazy
make following (sub)tabs lazy:
 * ceph
 * firewall
 * ha
 * search
 * lxc/Resources

we have to add layout: 'fit', whereever we make a whole tab lazy
and we have to move the title of the search tab to the instantiaton
instead of the class definition, because the search grid is now a
sub component instead of a tab

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-16 16:32:40 +01:00
Dominik Csapak
a6bfa9e34e ext6migrate: prepare panels for lazyitems
since we want to make some tabpanels lazyitems,
we have to change the behaviour of the configpanel
and the subconfigpanel

in the configpanel, we have to manually fire the hide event
for the tabs which are lazyitems, because they will not
be direct children of our tabpanel and thus their
hide event will not fire

in the subconfigpanel we have to manually save the to
be active tab, since at this point, the subtabs are not there
yet (and cannot be activated)

also in the afterrender event, we only want to set the
activetab when we have none, and we only set the first,
if we have none saved

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-16 16:30:26 +01:00
Dominik Csapak
e40ece32ab ext6migrate: change ceph event handlers
change event handlers from show to activate
to allow refresh

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-16 16:28:30 +01:00
Dominik Csapak
fd344aafc4 ext6migrate: make ceph config a subclass
the subpanelconfig class was modeled after the ceph config class
but the ceph config was never changed to use that subclass
this patch changes that

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-16 16:28:17 +01:00
Dominik Csapak
12425761e9 ext6migrate: add missing items in statusprovider
some elements were missing and some had typos
also change ovztab to lxctab

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-16 16:27:38 +01:00
Dominik Csapak
ebbcb9f479 ext6migrate: fix Console butten text (again)
since sometimes, we set the text of the console button
('shell' or 'upgrade')
we do not want to override this everytime, but only
when me.text === null

we cannot use applyIf either, because this overwrites only
if the field is undefined, not null

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-16 16:26:58 +01:00
Thomas Lamprecht
36bdf79986 css6: reduce tree space usage for new theme
The tree has also big space paddings/margins in the crisp theme,
reduce this to a saner level.
2016-03-16 10:43:38 +01:00
Dietmar Maurer
7ace9f792f copy qemu/TemplateMenu.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
472b672b2e copy qemu/Summary.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
71bb050ba3 copy qemu/StatusView.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
fec3ae0b63 copy qemu/StartupEdit.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
53b6836afb copy qemu/SnapshotTree.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
4f3ced131d copy qemu/Snapshot.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
b61df95093 copy qemu/Smbios1Edit.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
71e5f1a433 copy qemu/SendKeyMenu.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
3ca43622e3 copy qemu/ScsiHwEdit.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
e98aff2215 copy qemu/QemuBiosEdit.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
785e475658 copy qemu/ProcessorEdit.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
57f9ed9fa1 copy qemu/OSTypeEdit.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
9205f4eaf4 copy qemu/Options.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
d61b9766dc copy qemu/NetworkEdit.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
ce1b76015e copy qemu/Monitor.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
79f60042ba copy qemu/MemoryEdit.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
45980d847e copy qemu/KeyboardEdit.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
cfb9f55735 copy qemu/HDThrottle.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
c8f90a3dc7 copy qemu/HDResize.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
e894a28755 copy qemu/HDMove.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
8bd3e68308 copy qemu/HDEdit.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
37d8b5b068 copy qemu/HardwareView.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
ba7d9e27d5 copy qemu/DisplayEdit.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
e0b3ee0539 copy qemu/CreateWizard.js from manager to manager6 2016-03-16 09:12:21 +01:00
Dietmar Maurer
14ba222f51 copy qemu/CPUOptions.js from manager to manager6 2016-03-16 09:12:21 +01:00
Dietmar Maurer
4fb643d1d4 copy qemu/CmdMenu.js from manager to manager6 2016-03-16 09:12:21 +01:00
Dietmar Maurer
6ab84dbc3f copy qemu/Clone.js from manager to manager6 2016-03-16 09:12:21 +01:00
Dietmar Maurer
4fbf3d3351 copy qemu/CDEdit.js from manager to manager6 2016-03-16 09:12:21 +01:00
Dietmar Maurer
47203b8111 copy qemu/BootOrderEdit.js from manager to manager6 2016-03-16 09:12:21 +01:00
Emmanuel Kasper
025da1b204 Enlarge Wizard window vertically to accomodate all our LXC settings
Without this, the summary grid in the end of the LXC creation
wizard needs to be scrolled to see some settings.

Note that we still want to use a fixed height, so that all wizard
panels have the same height and next/previous buttons
are always displayed at the same place.
2016-03-15 16:34:37 +01:00
Emmanuel Kasper
f805a76242 use Ext.apply() instead of Ext.applyIf() to properly load child items 2016-03-15 16:34:17 +01:00
Emmanuel Kasper
b47dcaec3a use proper xtype name 2016-03-15 16:34:03 +01:00
Emmanuel Kasper
478b1a6223 fix delayed store loading
Because the store loading delay, it can be that reload() fails on trying to
load an undefined store, if the user switched tabs in the meantime
2016-03-15 16:33:49 +01:00
Emmanuel Kasper
b26fe8189d use 'refresh' event to redisplay the grid after loading the store
'datachanged' event is not actualizing the component with ExtJS6,
but 'refresh' does.
2016-03-15 16:32:48 +01:00