Commit Graph

2173 Commits

Author SHA1 Message Date
Dietmar Maurer
2a727273a2 simplify code 2016-03-30 09:37:47 +02:00
Dietmar Maurer
3a8508a86d lxc: disable console button for templates 2016-03-30 09:35:52 +02:00
Emmanuel Kasper
4365549dfa disable console button for templates 2016-03-30 09:23:11 +02:00
Emmanuel Kasper
fe64be90d2 fix tree update when migrating a VM/CT
original bug:
migrated items where not appearing under the target server

implentation:
remove items whose 'node' property has changed
as these items need to be removed before being re-added

also rename the local variable 'changed' to 'moved' to
better differentiate between what is updated in place, and
what needs to be redisplayed
2016-03-30 09:22:38 +02:00
Dietmar Maurer
7667066d54 SafeDestroy: remove dead code
The cancel button was already removed.
2016-03-30 09:19:06 +02:00
Dietmar Maurer
bcecf28019 SafeDestroy.js: use modern ExtJS features
We now use the class config system, a View Model and a View Controller.
2016-03-30 09:07:32 +02:00
Dietmar Maurer
e1ffa9fcdc SafeDestroy.js: factor out common code 2016-03-29 10:27:40 +02:00
Dietmar Maurer
fd8a2eea60 cleanup: run emacs indent-region on SafeDestroy.js 2016-03-29 09:58:04 +02:00
Emmanuel Kasper
d59ed79b5d Do not turn the strings CT and VM into separate localizable strings
According to the PO files, translators keep 'CT' and 'VM' unchanged
2016-03-29 09:21:14 +02:00
Dominik Csapak
78abe162e4 ext6migrate: remove button height from upload window
since we changed to the crisp theme, the button should
not have a height of 32px

this reverts part of the commit:
5d57889439c5f05afb86b08df076e422520e8381

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-21 14:02:47 +01:00
Dominik Csapak
5c41645953 filter backup always by vm type
currently, as soon as you type something in the backup search bar,
the filter for the vm type (e.g. lxc or qemu) gets cleared, and
you see *all* backups (also those not for the current type)

this patch adds the original filterFn to the filter when searching

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-21 14:02:29 +01:00
Dominik Csapak
a26cb7118c ext6migrate: Qemu Options fixes
change applyIf to apply, so that the values are changed
and
change activate to show, so that the store starts updating
on site refresh

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-21 11:16:59 +01:00
Dominik Csapak
296cab27f5 ext6migrate: let the components determine width
since we have a bigger font, instead of
hardcoding the width, let the components generate the
necessary width

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-21 11:16:39 +01:00
Dominik Csapak
ac7db8f761 ext6migrate: change default values
since KVCombobox expects __default__ as default value
change to this in

DisplayEdit
HDEdit
KeyboardEdit
ProcessorEdit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-21 11:16:27 +01: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
Emmanuel Kasper
32f469f383 requires manual entering VM id before enabling the delete Button for VMs
suggested by a user in https://bugzilla.proxmox.com/show_bug.cgi?id=360#c7
similar to the way github handles the deleting of a repository

fixes: #360
2016-03-21 10:45:49 +01:00
Wolfgang Bumiller
283b450ec5 parser: fix case sensitivity when classifying mountpoints 2016-03-18 16:27:03 +01:00
Dominik Csapak
c5ccc8d0b7 ext6migrate: enable some qemu tabs
enables:
Monitor, Backup, Snapshot, Console, Firewall, Permissions

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-18 16:09:58 +01:00
Dominik Csapak
2e52404d05 ext6migrate: fix HDEdit, HDMove, HDResize
the StorageSelector fires the change event one time before data is there,
this patch catches that

also make the hdresize window wider because of the bigger font

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-18 16:09:42 +01:00
Dominik Csapak
e2f10d87f7 ext6migrate: change reference to widget
the correct name is pveNodeSelector

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-18 16:09:19 +01:00
Dominik Csapak
26c5aba03e ext6migrate: fix lxc resource view
after making the resource view lazy
the activate event does not trigger everytime
(where we reload)
so we make it the afterrender event

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-18 16:09:04 +01:00
Dominik Csapak
ca6372bda7 ext6migrate: fix KVCombobox behaviour in qemu
for details see commit:
f2782813cd

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-18 16:08:50 +01:00
Dominik Csapak
98722a21b0 ext6migrate: make lxc snapshot window bigger
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-18 16:08:26 +01:00
Dominik Csapak
cd9da2e985 ext6migrate: fix qemu snapshot panel
changes id to itemid
make the snapshot info window a little bigger (for the bigger font)
changes the fireevent from datachanged to refresh
(for details see commit 1cd913372c)
and change show to activate event

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-18 16:08:15 +01:00
Dominik Csapak
3061bc4ffd 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
d53b4cc501 copy form/QemuBiosSelector.js from manager to manager6 2016-03-18 15:42:36 +01:00
Emmanuel Kasper
f1f6c52ed7 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
45b473c68a Enable four first tabs of Qemu Panel 2016-03-17 10:45:33 +01:00
Emmanuel Kasper
f09dd6c16d 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
fbe1b520b3 replace calls to new() with Ext.create() 2016-03-17 10:44:48 +01:00
Emmanuel Kasper
c5b0115067 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
6f68dcbedd 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
9fb537753a ext6migrate: remove trailing whitespaces
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-16 16:32:55 +01:00
Dominik Csapak
7e27f5d1b4 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
a39018a72e 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
50c3086016 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
30f7f4d9e2 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
ca966b7ec7 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
26c5f8d776 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
06076ea0e0 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
d5b5cc830b copy qemu/TemplateMenu.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
426d7f74bf copy qemu/Summary.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
3c18b11404 copy qemu/StatusView.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
e266d497f3 copy qemu/StartupEdit.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
52245de7cd copy qemu/SnapshotTree.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
baba089b06 copy qemu/Snapshot.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
1c17011310 copy qemu/Smbios1Edit.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
92cfdf0273 copy qemu/SendKeyMenu.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
06cfa1e906 copy qemu/ScsiHwEdit.js from manager to manager6 2016-03-16 09:12:23 +01:00