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
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>
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>
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>
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>
since KVCombobox expects __default__ as default value
change to this in
DisplayEdit
HDEdit
KeyboardEdit
ProcessorEdit
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
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>
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>
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>
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>
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')
* 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)
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
* 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
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>
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>
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>
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>