Commit Graph

3258 Commits

Author SHA1 Message Date
Thomas Lamprecht
5bbe58a5bd ui: notes editor: increase edit window size from 600x400 to 800x600
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-21 16:50:11 +02:00
Lorenz Stechauner
6b3e760581 ui: add HashAlgorithmSelector
Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
2021-06-21 11:25:58 +02:00
Thomas Lamprecht
42d480223b ui: user view: rework to slightly more modern & code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-21 10:19:44 +02:00
Thomas Lamprecht
236b33e2b2 ui: notes view: render node and guest notes as Markdown
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-18 19:24:39 +02:00
Thomas Lamprecht
a78362cf06 ui: notes edit: set maxLength on text area
the backend will have actual explicit length limits on the
description properties (was limited indirectly through PUT/POST
request size limit of 64 KiB), so convey that limit also in the GUI.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-18 19:23:15 +02:00
Thomas Lamprecht
dbf3563fdf ui: notes view: code cleanup/refactoring
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-18 19:22:28 +02:00
Dominik Csapak
b235a53821 fix #3470: ui: qemu/CmdMenu: fix confirm message for 'pause' cmd
while the command itself is 'suspend', the task description
is 'qmpause', so simply add a parameter and overwrite it for the pause
menu item

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-06-18 17:21:52 +02:00
Dominik Csapak
7748b41fa1 ui: ceph/Pools: defuse min_size warning
we should not warn for ceph's built-in default value for min_size as
having the min_size half of the size (rounded up) is ok and even the
default for ceph

Since there seems to be no 'quorum based' pg inconsistency recovery[0],
only a copy from the authoritative osd, there is nothing wrong
with setting that.

0: https://docs.ceph.com/en/latest/rados/operations/pg-repair/

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-18 17:18:02 +02:00
Dominik Csapak
aa16ebbb97 ui: dc/ACLView: make the window wider
to accomodate the longer acl paths better

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-06-18 17:06:29 +02:00
Dominik Csapak
80e364cc24 ui: data/PermPathStore: add missing basic acl paths to acl selector
those two static acl paths were missing in the selector

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-06-18 17:06:29 +02:00
Dominik Csapak
164a86abd5 ui: fix Guest Summary Notes height
fixes 'infinite' height of the guest notes, by setting the height on the
container a level up

the notes view itself is already scrollable, so if it is too large,
there'll be a scrollbar

this does not change anything for templates, as there we show nothing
under the notes and thus there the infinite height is ok

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-06-18 13:37:07 +02:00
Thomas Lamprecht
f2e174dacc ui: backup prune: add label for storage prune settings
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-17 17:44:32 +02:00
Fabian Ebner
01a69af40f ui: backup window: also reset removal fields when defaults API call fails
to avoid showing settings for the wrong storage.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-06-17 16:29:19 +02:00
Fabian Ebner
170f8fb4e4 fix #2745: ui: backup window: allow specifying remove parameter for manual backup
and also show the retention options that will be used for a given storage. A
user with Datastore.AllocateSpace and VM.Backup can already remove backups from
the GUI manually, so it shouldn't be a problem if they can set the remove flag
when starting a manual backup in the GUI.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-06-17 16:29:19 +02:00
Fabian Ebner
0b240dbf6a ui: backup window: switch to two-column layout
in preparation to add more items in the future, e.g. removal settings, note
container.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-06-17 16:29:19 +02:00
Fabian Ebner
bef57f5c65 ui: backup window: switch to proxmox input panel
It's not an Ext.form.Panel, so there is no fieldDefaults.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-06-17 16:29:19 +02:00
Fabian Ebner
5ad3fbfad9 ui: backup window: set loading mask early enough
but not too early. Because of an ExtJS bug/limitation, it can only happen after
the window is rendered, so use an afterrender listener. Without setting the
mask there, the window will be active already before the storage selectors
change listener triggers, which can only happen after the storage selectors
store is loaded.

Made noticable by the new "filling in defaults" behavior, but the issue was
already present earlier, where the compression selector for PBS storages would
be disabled late, after the window was already active.

Also move the setValue call into the afterrender listener, so ordering is easy
to verify/more stable.

Reported-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-06-17 16:29:19 +02:00
Fabian Ebner
b0d716e4eb ui: backup window: also set initialDefaults variable in failure case
so that mailto and mode are not overwritten if the first /vzdump/defaults call
failed, but a later one succeeds.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-06-17 16:29:19 +02:00
Fabian Ebner
6d52223bac ui: backup window: avoid issuing API call with null/empty parameter
could be triggered when there are no backup storages at all configured or if
the 'Backup now' button is clicked before the storage selector from the guests
'Backup' tab could load its store.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-06-17 16:29:19 +02:00
Thomas Lamprecht
b85ef5ab61 ui: parser: make comment single-line
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-17 16:29:00 +02:00
Fabian Ebner
c4aa56eb38 ui: storage: update hint about prune-backups default
and also remove the keepLastEmptyText, which too suggested the old default.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-06-16 13:28:54 +02:00
Thomas Lamprecht
2c55daab85 ui: eslint fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-16 11:22:45 +02:00
Thomas Lamprecht
2e061d8110 ui: ceph: select Pacific as default release
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-15 13:07:35 +02:00
Thomas Lamprecht
4d1bb8e50f add beta text with link to bugtracker 2021-06-15 12:28:41 +02:00
Thomas Lamprecht
260ac8cdb3 ui: TFA: use correct user-id value when creating TOTP QR code
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-10 09:16:50 +02:00
Fabian Ebner
596bb7b11a api: ceph: osd: create: rename size parameters
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-06-09 11:29:34 +02:00
Fabian Ebner
05d5446df8 api: move cpu path into qemu/capabilities
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-06-09 11:29:34 +02:00
Fabian Ebner
be375fee3f ui: disk list: enable wipe disk button
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-06-02 13:20:46 +02:00
Fabian Ebner
4d60651fc7 ui: add task description for wipe disk
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-06-02 13:20:46 +02:00
Thomas Lamprecht
43166cb6f8 buildsys: www: touch incremental-lint in check target to avoid triggering twice
Without this the check and the, through the 'install' target
triggered, incremental lint target triggered a full eslint run.

Makes it similar to what PBS did from the beginning of eslint
inclusion..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-28 11:13:05 +02:00
Thomas Lamprecht
f0af029bd4 buildsys: www: make 'all' target a no-op
preparatory steps for better make dependencies when executing the
lint check.

People can still just make the .js targets directly or use the
install target.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-28 11:11:17 +02:00
Dominik Csapak
5f2e6c2e57 ui: ceph/Status: fix icon in status grid
there was a spurious leftover single quote("'"), that prevented
the correct css class to be inserted
(e.g., fa-exclamation' instead of fa-exclamation)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-28 10:44:15 +02:00
Dominik Csapak
afc70cd321 ui: form/CalendarEvent: remove displayField from config
in extjs 7.0, setting the displayField overwrites the displayTpl, which
we use here

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-27 12:43:08 +02:00
Dominik Csapak
133d82d5e5 ui: tree/SnapshotTree: use beforedestroy instead of destroy
on extjs 7.0, this triggers when the handler is not available anymore,
so use the beforedestroy event instead

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-27 12:43:08 +02:00
Dominik Csapak
928028c1f6 ui: panel/ConfigPanel: return early on no selection
treelist technically allows deselection and this happens on destruction
in extjs 7.0 so simply return early to avoid errors accessing
components that do not exist anymore

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-27 12:43:08 +02:00
Dominik Csapak
c8d72c05ca ui: panel/ConfigPanel: change ui class to pve-nav
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-27 12:43:08 +02:00
Dominik Csapak
cd79166d74 ui: ResourceGrid: move first update to afterrender
else with extjs 7.0, the first render does not happen yet, because
the grid is not visible at that time

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-27 12:43:08 +02:00
Dominik Csapak
f871f7857d ui: form/VMCPUFlagSelector: mark radio-buttons as 'not form fields'
else they might get picked up individually

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-27 12:43:07 +02:00
Thomas Lamprecht
df22311b50 ui: nav: move bg-color override to CSS class
colors overrides really must not happen inline...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-23 18:04:16 +02:00
Dominik Csapak
7663037544 ui: ResourceGrid: correctly remove ResourceStore listener
while the function in '.on' and '.un' are identical, they are not the
*same* function, thus the '.un' does not really remove the listener,
and we have leftover references to the grid which means it will never
really garbage-collected

instead, use '.mon' on the grid, which automatically cleans up the
listeners

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-20 21:01:49 +02:00
Dominik Csapak
e492ab4dc8 ui: dc/RoleView: add variableRowHeight
otherwise the grid is confused about the row height (since it is
variable here) and renders the scrollbars weirdly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-20 21:01:49 +02:00
Dominik Csapak
308d9f365c ui: Parser: fix bind and dev mounts for lxc
match returns 'null' if the regex does not match, which is not
destructurable. so we have to save the match and check if it valid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-05-20 21:01:49 +02:00
Thomas Lamprecht
00fa70bfd9 enable ceph 16.2 pacific
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-20 20:54:52 +02:00
Thomas Lamprecht
339ff552b1 Revert "buildsys: change upload/repo dist to bullseye"
pushed by mistake, please ignore this and the previous one

This reverts commit 4816c96931.
2021-05-20 20:52:52 +02:00
Thomas Lamprecht
4816c96931 buildsys: change upload/repo dist to bullseye
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-20 14:55:53 +02:00
Thomas Lamprecht
c15d821e0a enable eslint on build
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-19 17:42:21 +02:00
Thomas Lamprecht
00c3ac53c7 ui: form/storage selector: re-validate after storage list was reloaded
two style fixes thrown in

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-19 16:52:49 +02:00
Thomas Lamprecht
685b52f58c ui: window/Migrate: avoid triggering another info request if already in-progress
use the node as key, so that a target switch would still trigger a
new one - else there's a slight chance that a user could get the
check out-of-sync (from another node).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-19 16:52:49 +02:00
Thomas Lamprecht
d8d4c14b73 ui: window/Migrate: eslint fixes and code cleanup/refactoring/modernize
Use the Proxmox.Async.api2 helper to avoid deep nesting

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-19 16:52:49 +02:00
Thomas Lamprecht
cb139584b1 ui: window/Browser Settings: eslint fixes and code cleanup/refactoring/modernize
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-19 16:52:49 +02:00