Commit Graph

301 Commits

Author SHA1 Message Date
Stefan Sterz
056e5aad9b subscription/summary/backup: stop setting the background color
setting the background color in js code adds that property as a style
attribute to the element. that makes it hard to alter later via css
and makes it hard to dynamically change the color e.g. if we want to
add different themes. the background color for these elements are
white already anyway, so just remove them here.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
2023-03-08 17:55:41 +01:00
Thomas Lamprecht
dc4056cfcb ui: resource tree settings: make wider and clarify field labels
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-02-22 11:37:53 +01:00
Thomas Lamprecht
0489947166 ui: resource tree settings: use the safer hash as bogus submit URL
while it should not matter as we override submit() here, using the #
ensures that there never will be any HTTP request produced.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-02-22 11:36:42 +01:00
Dominik Csapak
3a2a696443 ui: add window for changing tree related options
such as the sorting/grouping of guests. saves them in the browser local
storage under 'pve-tree-sorting'

adds a button for it next to the the view selector

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2023-02-22 09:12:36 +01:00
Thomas Lamprecht
8686ba103f ui: schedule sim: denote if any simulation was done via empty text
As subtle UX hint that the user first needs to press the Simulate
button.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-20 10:46:57 +01:00
Thomas Lamprecht
d3eacb83f8 ui: schedule sim: clear previous simulation output on error
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-20 10:46:00 +01:00
Thomas Lamprecht
7518576735 ui: schedule sim: rename 'OK' button to 'Done'
As Ok is mostly sensible for acknowledging informational or notice
pop-ups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-20 10:44:41 +01:00
Thomas Lamprecht
a99c8196b5 ui: schedule sim: code style cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-20 09:53:33 +01:00
Dominik Csapak
92df2742f5 ui: ScheduleSimulator: split date and time into two columns
and align the time right. This makes it easier to compare times

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2023-01-19 18:08:19 +01:00
Thomas Lamprecht
485e510694 ui: bulk actions: default to a height of 600 px
Better fit to the 800 px default width, especially as bulk shutdown
now also got some form fields that take up space.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-14 17:41:04 +01:00
Thomas Lamprecht
a75bace1f4 ui: bulk shutdown: expose new timeout and force-stop to user
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-14 17:41:04 +01:00
Thomas Lamprecht
7be0f644b3 ui: bulk migrate: cleanupl, reduce and modernize code
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-14 17:41:04 +01:00
Matthias Heiserer
0c3baeef0b ui: LXC template upload: allow zstd compressed (.tar.zst) images
Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-16 20:13:48 +01:00
Aaron Lauterer
219293bd1d ui: CephInstall: fix a/an typo
and switch to template string

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2022-09-07 15:25:09 +02:00
Thomas Lamprecht
a707bed6dd ui: ct restore: put mountpoint-erasure note on new line
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-07-07 10:08:02 +02:00
Fabian Ebner
5f855ccf27 ui: restore: improve warning for restoring container with same ID
It's not clear to users that the "VM data" includes mount point
volumes including those that are not marked for backup. This is
different from VM restore, where volumes attached at drives not
present in the backup will be kept around as unused volumes.

Several (supposedly newer) users got tripped up by this over the
years, the latest report being [0]. The long term plan is to make the
restore dialog more flexible to be able to select actions for disks
individually, but that will take a bit of time. In the mean time, make
the warning more explicit.

[0]: https://forum.proxmox.com/threads/111760/#post-482045

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-07-07 10:03:39 +02:00
Fabian Ebner
6a3052b299 ui: manual backup: unescape notes template on load
It's escaped in the API result and will be re-escaped upon submit,
leading to confusion as reported in the community forum:
https://forum.proxmox.com/threads/110747/post-480507

Fixes: c4dca88b ("ui: manual backup: also set notes-template default")
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-06-28 16:10:13 +02:00
Fabian Ebner
c4dca88b5e ui: manual backup: also set notes-template default
like is done for other vzdump options already.

Requested in the community forum:
https://forum.proxmox.com/threads/108970/#post-468655

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-05-12 17:17:56 +02:00
Fabian Ebner
03875d7ac4 ui: manual backup: list possible template variables directly
rather than as a tooltip.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-05-12 17:17:56 +02:00
Matthias Heiserer
719f1d3c6f ui: disk reassign: remove unused reference and bind
They are not used anywhere else, so I assume they were left over from
an earlier version.
Also, sometimes "[object object] flashes in the Target Guest field
when opening the reassign window, with this removed it doesn't occur.

Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
Tested-By: Aaron Lauterer <a.lauterer@proxmox.com>
2022-05-02 16:44:44 +02:00
Fabian Ebner
5e73ffe680 ui: backup: allow setting protected and notes-template for manual backup
Setting a width, so the text area can fill the horizontal space.

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-04-28 13:45:53 +02:00
Fabian Ebner
b61d079afc ui: restore: fix syntax error introduced in previous commit
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-04-28 11:29:42 +02:00
Thomas Lamprecht
8ce4c52480 ui: restore overrides: switch from column to hbox+panel layout
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-28 11:12:19 +02:00
Fabian Ebner
6161093e26 ui: restore: display "Hostname" for container
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-04-28 10:45:17 +02:00
Fabian Ebner
c7f66bd038 ui: restore: group override settings in a fieldset
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-04-28 10:45:17 +02:00
Fabian Ebner
1ad2651202 ui: restore: allow override of some settings
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-04-28 08:43:36 +02:00
Fabian Ebner
47520da33a ui: restore: disallow empty storage selection if it wouldn't work
Namely, if there is a storage in the backup configuration that's not
available on the current node.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-04-28 08:43:36 +02:00
Thomas Lamprecht
70aaf893b8 ui: backup restore: add hint to window title on overwrite restore
we prompt for confirmation in that case anyway, but some subtle, but
extra difference may still help

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-23 13:26:46 +02:00
Thomas Lamprecht
0e593799aa ui: backup restore: show "make unique" field also for self-overrride-existing
For example, relevant if the filterVMID checkbox got turned off. But
a user may also want to make the restored VM unique in other cases
too.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-23 13:26:45 +02:00
Thomas Lamprecht
ce60366ff3 ui: backup restore: use displayEdit field for guest selector
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-23 13:26:27 +02:00
Thomas Lamprecht
d3de9b555a ui: backup restore: rework to leverage more viewcontroller and cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-23 13:26:25 +02:00
Stefan Sterz
742de03d5a ui: move NotesView panel and NotesEdit window to widget kit
this removes the NotesView panel and NotesEdit and replaces them with
with the version from the widget kit. requires a bump of the widget
toolkit.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
2022-04-13 11:35:30 +02:00
Thomas Lamprecht
6c06783930 ui: disk reasign: condense code, some style improvements
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-13 11:34:31 +02:00
Thomas Lamprecht
d72ad78bd4 ui: disk reassign: improve title and field-label
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-08 15:00:58 +02:00
Thomas Lamprecht
14ea602f9d ui: disk reassign: drop useless intermediate form
The form is basically a 1:1 copy from what the edit window gives us
for free already anyway, so just drop it.

best viewed with `git show -w`

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-08 14:58:30 +02:00
Thomas Lamprecht
2281ca3202 ui: disk reassign: improve default focus behavior
avoid that opening the edit window makes the guest-selectors combobox
"jump" in ones face.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-08 14:55:07 +02:00
Thomas Lamprecht
3bde324faf ui: move disk reassign into window/ folder
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
2022-04-08 14:53:55 +02:00
Fabian Ebner
e877e05701 window: safe destroy guest: add note that referenced disks are destroyed
It's not clear to all users otherwise[0].

[0]: https://forum.proxmox.com/threads/100996/post-436919

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2022-01-13 17:01:39 +01:00
Dominik Csapak
758690bf4d add 'auto' mode for noVNC scaling
in commit
07195aa079 ("ui: fix novnc scaling radio button")

we always set to 'scale' when no value was set, but a non-set value
actually had a different behaviour:

in the embedded console it was set to 'scale', but in the pop-up it was
set to 'off'.

to restore this behaviour, introduce an option 'auto' which unsets the
'novnc-scaling' setting

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-01-13 12:58:59 +01:00
Dominik Csapak
07195aa079 ui: fix novnc scaling radio buttons
when having selected 'off', the next start of the window has both
radiobuttons selected and no change is possible anymore. It seems that
the 'checked: true' triggers only after the 'init' function.

So instead remove the 'checked: true', and add the default in the init
function.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-01-11 16:32:50 +01:00
Thomas Lamprecht
1ec18d40af ui: upload/download image: trim checksum value
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-03 11:09:51 +01:00
Thomas Lamprecht
2577d492c3 ui: schedule sim: slight title adaption
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-11-11 21:02:03 +01:00
Thomas Lamprecht
b53157c01e ui: schedule sim: fix right alignment of simulate button
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-11-11 21:02:03 +01:00
Thomas Lamprecht
584a57ea3c calendar event simulator: rename number parameter to iterations
in sync with the same option of `systemd-analyze calendar` and number
is so generic.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-11-11 20:53:13 +01:00
Dominik Csapak
4d6215bcf5 ui: dc/Backup: add schedule simulator button
so that a user can simply simulate the schedule

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-11-11 18:35:52 +01:00
Wolfgang Bumiller
f744796310 www: switch to new tfa login format
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-11 14:38:31 +01:00
Wolfgang Bumiller
d35665de6c www: use render_u2f_error from wtk
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-11 14:38:23 +01:00
Fabian Ebner
eedb35da76 ui: node: storage removal: add checkbox for cleaning up storage config
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-11-10 14:03:27 +01:00
Fabian Ebner
bccfb43f9f ui: node: storage removal: add checkbox for cleaning up disks
and factor out a SafeDestroyStorage sub-class to avoid duplication.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2021-11-10 14:03:27 +01:00
Lorenz Stechauner
e1c245a52b ui/UploadToStorage: check file extension
Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
2021-11-10 10:08:11 +01:00