Commit Graph

36 Commits

Author SHA1 Message Date
Thomas Lamprecht
8058410f40 ui: eslint: fix various spacing related issues
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-01-19 17:39:15 +01:00
Thomas Lamprecht
f6710aac38 ui: eslint: fix trailing comma and comma related whitespaces errors
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-01-19 17:31:03 +01:00
Thomas Lamprecht
2a4971d8c9 ui: eslint: fix trailing spaces
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-01-19 17:29:55 +01:00
Oguz Bektas
641da26d54 lxc: increase limit of max cores from 128 to 8192
to match the recently change in the container backend

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-09-15 11:24:26 +02:00
Thomas Lamprecht
3bbce3b8cd drop jslint lines
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 18:11:47 +02:00
René Jochum
fdce7d56ce Remove swap/memory limit in the Manager, fixes #1799 2018-06-07 13:44:21 +02:00
Dominik Csapak
53395db153 lxc/ResoureEdit: move some cpu fields to advanced options
and show them now also in the wizard

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-04-06 11:45:14 +02:00
Dominik Csapak
07de011804 fix #1631: change units to binary prefix
we always expected MiB/GiB but labeled them incorrectly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-01-31 14:08:34 +01: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
Dominik Csapak
bf96f60deb use IntegerField from widget toolkit
there we implemented deleteEmpty, which we can use in some cases.
this also fixes a bug in the ControllerSelector where
an empty field would be allowed (but should not)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-25 13:36:37 +01:00
Wolfgang Bumiller
1840144567 fix #1605: reflect backend values of minimum memory limit
The backend's minimum value for container memory is 16M,
not 32.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-01-02 12:40:43 +01:00
Dominik Csapak
342225bfda move lxc mountpoint edit from ResourceEdit.js to MPEdit.js
to follow qemu code

also fix the jslint errors in MountPointInputPanel and MountPointEdit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-11-14 13:27:03 +01:00
Philip Abernethy
c15e9cd5e4 Disallow quotas for unprivileged containers
Disables the quota checkbox for unprivileged containers in the creation
wizard, as well as when editing or adding mountpoints.
2017-09-12 09:34:48 +02:00
Dominik Csapak
dcbb4ba190 check if storage is in the selector
when having an lxc mountpoint/rootfs on a storage which does not
allow the 'rootfs' content (e.g. somebody disabled it after creating
a container there), trying to edit the mp/rootfs broke the gui

now we check if the record exists

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-13 09:48:44 +02:00
Dominik Csapak
20d9d1f326 fix breaking gui when trying to edit a bindmount rootfs
when having a simple directory as rootfs,
trying to edit it in the gui broke it, because
we tried to disable the backup checkbox which did not exists

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-07-13 06:36:43 +02:00
Emmanuel Kasper
cbe73a8981 Make sure checkboxes always appear under the ACL combobox for a bit of esthetic 2017-06-28 06:11:56 +02:00
Emmanuel Kasper
fc3a208bda Add a checkbox 'Skip replication' to filter out container mount points to replicate 2017-06-28 06:11:27 +02:00
Dominik Csapak
0915ec99cb remove "read-only" option from container root disk
with root-only enabled, you cannot start the conainer anymore,
so we remove it there entirely

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-02 09:35:12 +02:00
Emmanuel Kasper
d5e771ce51 Rename 'create' to 'isCreate' in pveWindowEdit and subclasses
This fixes around 20 jslint type confusion warnings.
Also reduce the scope and document jslint warnings along the way.
No functional changes.
2017-03-02 10:36:35 +01:00
Dominik Csapak
8a7e5598f1 add pveIntegerField and use it
this adds a subclass of Ext.form.field.Number with the settings for
Integers (allowDecimals: false and allowExponential: false and default
step size 1)

and use it where we only accept integers

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-02 17:14:06 +01:00
Dominik Csapak
cb38d277de add lxc cpu and memory onlineHelp ids
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-02 16:41:34 +01:00
Thomas Lamprecht
fe4f00adc9 add 'delete_if_default' helper and use it
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-11-02 11:00:16 +01:00
Dominik Csapak
1d654cfe40 forbid decimals and exponent in lxc cores field
because we only accept integers here

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-31 16:17:15 +01:00
Dietmar Maurer
92b5029f60 LXC GUI: Wizard now uses new 'cores' option instead of cpulimit 2016-10-29 11:05:16 +02:00
Dietmar Maurer
c8802a60b7 use auto-generated block IDs to reference online docu. 2016-10-13 11:26:06 +02:00
Dietmar Maurer
60ca33057c code cleanup 2016-09-16 07:38:47 +02:00
Fabian Grünbichler
203fd3488f lxc: correctly display cpulimit
the backend defaults to 0 (unlimited), so this should also be the default
in the GUI if nothing is set.
2016-09-16 06:58:27 +02:00
Dominik Csapak
7f1ac74ce7 add onlineHelp to lxc
and its options, and to network input panel
and mount point input panel

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-09-13 16:41:53 +02:00
Dominik Csapak
494b650e25 fix reset button with bind mounts
if we do not disable the storageselector with bind mounts,
it automatically sets the first storage which can hold
containers (because of allowBlank: false) and triggers
the dirty flag but clicking on reset does not delete
the value there

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-19 06:12:35 +02:00
Dominik Csapak
47e36cf677 fix #1000: add backup checkbox for mountpoints
excluding bind mounts and rootfs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-19 06:11:25 +02:00
Dietmar Maurer
185a77e555 reduce translation overhead 2016-04-05 11:10:52 +02:00
Wolfgang Bumiller
17ab437fab lxc: disable ACL settings for bind mounts 2016-03-14 17:28:59 +01:00
Emmanuel Kasper
e7f0e95e2f fix storage selector 'change' event handling
the initial loading of the storage selector fires a 'change'
event via the 'onLoad' method of its parent class

at that point the value of the storage selector is empty,
and the callback function fails
2016-03-09 18:03:54 +01:00
Emmanuel Kasper
0b409147ad Fix ComboBoxes when adding a mountpoint
reasoning identic to:
commit 8f8e8a2e06
adapt KVComboBoxes to pass store items using 'comboItems' parameter
2016-03-09 18:02:43 +01:00
Dietmar Maurer
ab2fac2f75 copy lxc/ResourceEdit.js from manager to manager6 2016-03-03 10:51:31 +01:00