22 Commits

Author SHA1 Message Date
Thomas Lamprecht
36e97aa41d ui: vm boot order: move init logic into controller
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-03-14 08:40:46 +01:00
Dominic Jäger
91a47a766f ui: eslint: State equalities more precisely
Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-18 15:22:05 +02:00
Thomas Lamprecht
53e3ea8488 ui: eslint: enforce "no-extra-parens" rule
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-01-19 17:42:36 +01:00
Stefan Reiter
c856bd1c22 ui: bootorder: add onlineHelp link
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2020-11-25 16:11:32 +01:00
Thomas Lamprecht
d571f1f382 ui: boot order: handle cloudinit correctly
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-22 18:45:31 +02:00
Thomas Lamprecht
eb4b9246a8 ui: boot order: eslint fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-22 18:45:31 +02:00
Thomas Lamprecht
dd27ec6d3a ui: bootorder: show device type as icon for UX
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-16 14:47:10 +02:00
Thomas Lamprecht
595c30aa62 ui: bootorder: define all column widths flex
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-16 14:46:48 +02:00
Thomas Lamprecht
eacd918e0a ui: bootorder: set minHeight for grid to conceal the long load time a bit
as else the window is not centered if it only grows in size after
ExtJS rendered it completely once.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-16 14:45:39 +02:00
Thomas Lamprecht
9377540652 ui: bootorder: set common options using the defaults property
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-16 14:43:59 +02:00
Stefan Reiter
1cc7c672b7 ui: improve boot order editor
The new boot order property can express many more scenarios than the old
one. Update the editor so it can handle it.

Features a grid with all supported boot devices which can be reordered
using drag-and-drop, as well as toggled on and off with an inline
checkbox.

Support for configs still using the old format is given, with the first
write automatically updating the VM config to use the new one.

The renderer for the Options panel is updated with support for the new
format.

Note that it is very well possible to disable all boot devices, in which
case an empty 'boot: ' will be stored to the config file. I'm not sure
what that would be useful for, but there's no reason to forbid it
either, just warn the user that it's probably not what they want.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2020-10-14 12:31:14 +02:00
Thomas Lamprecht
ef4ef788d5 use InputPanel from widget toolkit
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
2018-01-25 13:36:38 +01:00
Thomas Lamprecht
9fccc702ec use windowEdit from widget toolkit
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
2018-01-25 13:36:38 +01:00
Thomas Lamprecht
09cacce778 use KVCombobox from widget toolkit
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
2018-01-25 13:36:38 +01:00
Dominik Csapak
e7ade592e3 use Proxmox.Utils instead of PVE.Utils
some function are now in Proxmox.Utils instead, so we have to use that

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-25 13:36:38 +01:00
Emmanuel Kasper
98a01af2a8 Add regexp to match a bus entry in a VM config 2016-10-07 07:01:36 +02:00
Dominik Csapak
22f2f9d6c0 jslint: remove trailing commas
before ECMA5 trailing commas in arrays and objects
are forbidden

in jslint this is an error and cannot be deactivated

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:06:34 +02:00
Dominik Csapak
ec0bd652db jslint: fix type confusion and property access
fix various type confusion, for example:
items: {} and items: []
style: string and style: {}

also fix object['property'] access with
object.property

also fix /=/ with either '=' or /\=/ where appropriate
(/=/ can be confused with /= according to jslint)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:06:23 +02:00
Dominik Csapak
4edfc518b9 refactor bootdisk test and prevent multiple bootdisks
refactor the test for the bootdisk, to make future changes easier,
also, only allow one bootdisk to be selected

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-25 11:19:49 +02:00
Dominik Csapak
9e7b4d8dc5 fix #943: allow saving of values
we mistakenly did not reset the originalvalues after the inital
load, which meant that on reset we would not get the correct values

furthermore we have to suspend only the change event and not all,
otherwise the functions for enabling/disabling the ok/reset buttons
do not trigger (on validitychange and dirtychange)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-25 11:18:57 +02:00
Dominik Csapak
adaac36f72 fix #181: rewrite Boot Order Window
changed the way the boot order selection behaves:

now when choosing a value which already is chosen elsewhere,
switch them

also when assigning any device as none, move the remaining devices up

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-15 09:42:33 +02:00
Dietmar Maurer
638a57e735 copy qemu/BootOrderEdit.js from manager to manager6 2016-03-16 09:12:21 +01:00