Commit Graph

153 Commits

Author SHA1 Message Date
Dominik Csapak
394a99831d properly hide the resume button by default
the config 'visible' does not exist,
instead use 'hidden'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-01 13:23:08 +02:00
Dominik Csapak
13af4d510f ext6migrate: use new charts for node/lxc/qemu
uses the new charts for the rrd graphs in the summary pages
and make them lazy (for minimal performance impact)

also correct some styling errors and move static fields
to the class definition

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-31 10:39:14 +02:00
Dietmar Maurer
2a727273a2 simplify code 2016-03-30 09:37:47 +02:00
Emmanuel Kasper
4365549dfa disable console button for templates 2016-03-30 09:23:11 +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
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
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
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
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
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
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
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
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
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
Dietmar Maurer
cedc0418e3 copy qemu/QemuBiosEdit.js from manager to manager6 2016-03-16 09:12:23 +01:00
Dietmar Maurer
59e85a547d copy qemu/ProcessorEdit.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
d3ce36d94d copy qemu/OSTypeEdit.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
7d44036a37 copy qemu/Options.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
8487aa127b copy qemu/NetworkEdit.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
7a2a8d56a5 copy qemu/Monitor.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
e5bb8722c2 copy qemu/MemoryEdit.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
bf8873e89d copy qemu/KeyboardEdit.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
ac3c553c65 copy qemu/HDThrottle.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
9479ebc246 copy qemu/HDResize.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
5d485b708b copy qemu/HDMove.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
df15b3da37 copy qemu/HDEdit.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
f97670f558 copy qemu/HardwareView.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
db0501804f copy qemu/DisplayEdit.js from manager to manager6 2016-03-16 09:12:22 +01:00
Dietmar Maurer
9bbc1e4d03 copy qemu/CreateWizard.js from manager to manager6 2016-03-16 09:12:21 +01:00
Dietmar Maurer
bbace04b2e copy qemu/CPUOptions.js from manager to manager6 2016-03-16 09:12:21 +01:00
Dietmar Maurer
dc56cd139b copy qemu/CmdMenu.js from manager to manager6 2016-03-16 09:12:21 +01:00
Dietmar Maurer
f5226cd9f0 copy qemu/Clone.js from manager to manager6 2016-03-16 09:12:21 +01:00
Dietmar Maurer
16041408d0 copy qemu/CDEdit.js from manager to manager6 2016-03-16 09:12:21 +01:00
Dietmar Maurer
638a57e735 copy qemu/BootOrderEdit.js from manager to manager6 2016-03-16 09:12:21 +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
Emmanuel Kasper
a2f35eb2ea push column items individually
looks like ExtJS is not automatically flattening the array anymore
and items in a multidimensionnal array are not displayed with ExtJS6

lxc/Config.js is still commented because we haven't reached this part
in the upgrade, but fixing there too
2016-02-29 16:52:01 +01:00
Emmanuel Kasper
b70496d69d 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
156095db99 copy qemu/Config.js from manager to manager5 2016-01-22 11:24:30 +01:00