Commit Graph

155 Commits

Author SHA1 Message Date
Thomas Lamprecht
9afda559ff followup: use boxLabel to avoid big labelWidths
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-10-25 17:38:57 +02:00
Christian Ebner
743b391c50 fix #1291: add purge checkbox to VM/CT destroy dialog
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2019-10-24 13:48:41 +02:00
Thomas Lamprecht
8cfcb41b00 ui: window settings: remove no-op onShow overwrite
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-10-23 18:20:56 +02:00
Thomas Lamprecht
9d6d8d8620 ui: window settings: use column layout
This change shouldn't be noticeable, main advantage is that we can
add a top or botton spanning row for hints or a save/restore feature
(in the future)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-10-23 18:18:09 +02:00
Thomas Lamprecht
f5c68a74c7 ui settings: fix noVNC scaling mode radiogroup setValue
radio groups set and get Value helper are objects, as they are
expected to be key, value, where key is a field-name of the radio
group and values is the inputValue from the radiobutton to be set.

So ensure we extract only the value in the change event handler, as
we do not want to save the whole object. But on restoring (setValue)
we need to wrap it as object again, else radiogroup won't know what
field we want to set..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-10-21 15:20:22 +02:00
Thomas Lamprecht
94666c47dd ui: settings: remove ":" from some gettext labels
to make those easier to be re-used

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-10-21 11:31:09 +02:00
Mira Limbeck
cea7382bd8 fix #2364: allow offline migration with local cloudinit disk
As the cloudinit disk itself does not get copied on an offline
migration, just the config, there's no conflict. Ignore the local
cloudinit disk on offline migration. Also adds a useful message when
trying to live migrate with a local cloudinit disk.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
2019-10-18 21:49:05 +02:00
Tim Marx
4ddaf2909e ui: migrate: add checkbox to enable offline migration with local resources
Added to make use of [0] and because it does make sense for non HA vm's
as well, in accordance with #2241.

[0] pve-ha-manager: 6e8b0c225405da9472f56fe5c94c94b204259caa
Signed-off-by: Tim Marx <t.marx@proxmox.com>
2019-10-14 13:38:46 +02:00
Stoiko Ivanov
f71b7c28ff change .pve-hint to .pmx-hint css-class
With introducing pmx-hint to pmg as well, by adding a 'pmx-hint' css-class
to proxmox-widget-toolkit, it makes sense to use the definition everywhere.
this patch drops the .pve-hint class from pve's css and replaces all occurences
in the GUI-source.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2019-10-09 09:11:04 +02:00
Thomas Lamprecht
a3c30fbca3 ui: settings/xterm.js: add margin between reset/save button
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-10-04 14:40:24 +02:00
Thomas Lamprecht
0ddacca181 ui: labelWidth gets px suffixed so auto won't work
This is a common mistake with widths in ExtJS, most of them have the
'px' unit implicit, so using things like 'auto' or '100%' does not
works with them.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-10-04 14:38:34 +02:00
Dominic Jäger
bd7aef8664 Harmonize reset buttons in "My Settings"
- Rename both buttons to a single word as it is clear where they belong
  to. Use "Reset" instead of "Clear" as you can rather "Reset a saved
  user name" than "Clear a layout".
- Use container instead of panels as they are simpler (e.g. no "border:
  false" necessary) and sufficient.
- Align the buttons at the right for visual appeal.
- Use title case for the user name label for consistency.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
2019-10-03 12:26:12 +02:00
Thomas Lamprecht
57e61f82c9 ui: loginwindow: reduce empty whitespace cluttering
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-10-01 16:00:44 +02:00
Dominik Csapak
ecf4b557ae fix login window on chrome
labelWidth: 'auto' is not valid since extjs simply
adds 'px' and sets it as width which would result in:

width: 'autopx';

which is not valid css. chrome/chromium had a change such that this now
produces the wrong height in the login bottom 'button bar'

250 should be enough for all translations and we do not have
any other element there

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-09-06 16:22:44 +02:00
Thomas Lamprecht
9a08bd8a27 browser settings: move reset layout button to same row as label
diff best viewed with git diff -w

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-04 15:14:09 +02:00
Thomas Lamprecht
98b14eb0ec browser settings: add tooltip to reset layout button
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-04 14:30:19 +02:00
Thomas Lamprecht
b89a26bcb8 vnc scaling: show setting in a single line
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-04 14:30:01 +02:00
Dominic Jäger
26fcae336c Close #2262: Add noVNC scale setting
Add a setting to choose the scale mode of the noVNC pop-up as well as
the embedded console in the content panel to "My Settings". Having both
set to local scaling was the most important use-case for the users. One
setting for both places is the simplest solution making this possible.

The new section (fieldset) makes adding further options such as
"Local Cursor" easy.

Co-developed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
2019-09-03 14:15:37 +02:00
Thomas Lamprecht
e5d8aebb35 ui login: followup: add some hints to the 595 login error message
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-24 18:36:04 +02:00
Oguz Bektas
f41b67ab7c ui: login: do not show connection failure as login failure
In case pvedaemon, pveproxy is not running or we get somehow else a
595 response (connection failure), we want to tell this to the user,
since "Login failed" doesn't help.

Handle all connection failures, leave the rest the same. We could go
into more detail (CONNECT_FAILURE, CLIENT_INVALID, LOAD_FAILURE and
SERVER_INVALID), but i didn't see any reason to make all these
distinctions now.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
2019-07-24 18:34:18 +02:00
Thomas Lamprecht
a4740d30ac ui: window/migrate: use space separator between type and VMID
Like previous to commit 9706707d2f
which broke this, we have some assumptions in our gui-test/screenshot
automation which lays assumptions on certain window titles, so try to
keep them stable.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-15 20:14:39 +02:00
Tim Marx
c54f9a758d ui: migrate: add storage and size information to preconditions
Signed-off-by: Tim Marx <t.marx@proxmox.com>
2019-06-28 17:42:21 +02:00
Thomas Lamprecht
b453339028 ui: vm migrate: rename icon to severity and uses renderer
and some other minor style changes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-27 21:29:06 +02:00
Thomas Lamprecht
090dff2f43 ui: migrate: add source node field and rebalance field positions
This makes the window more symmetric, and additional has the
following small advantages:
* to the left we now have static fields only, user modifiable ones
  are all to the right (with shorter distance to the migrate "submit"
  button here)
* if one starts the migration from the tree's context menu it may not
  be really clear where the VM currently is located at, so showing
  the source node can help (especially on bigger clusters with a
  huge target node list)
* more symmetric

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-17 12:47:12 +02:00
Thomas Lamprecht
3188b0b707 ui: migrate: set window width to 600
700 feels a bit wide

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-17 12:39:51 +02:00
Tim Marx
9706707d2f ui: migrate: refactor migrate window & add migration with local disks
This patch depends on:
qemu-server: e1f0fbf4448b374eb9a19502aee565adb5be7ec0

This patch refactors the migrate ui to incoperate the viewmodel approach
which should help if we need to add functionality in future iterations.
Additionally it is now possible to migrate with local disks.

Signed-off-by: Tim Marx <t.marx@proxmox.com>
2019-06-15 11:15:30 +02:00
Thomas Lamprecht
ec5052600f js: fix some common typos found with codespell
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-06-15 10:44:43 +02:00
Thomas Lamprecht
c3d9c6980d pveceph install: allow nautilus and use as default
We allow 'luminous' still for testing purpose, it could be also
useful if one already upgraded his cluster to PVE 6.0 / Buster but
not yet ceph and due to a incident needs to setup a new luminous node
on Buster to get  healthy again. This is fabricated but not
unthinkable, as it costs nothing and isn't available for WebUI user
just keep it for now. Remove with a future point release though.
Use non-public repo for now, will be updated to testing soon.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-27 16:17:29 +02:00
Thomas Lamprecht
f6632d26b2 ui: FW log ratelimit: avoid access on possible undefined rate
This is an optional parameter and needs to be guarded, a simple
"truthy" check is enough, as eithers it's missing or a more complex
string (i.e., it cannot be '0' or the like)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-16 10:31:02 +02:00
Thomas Lamprecht
671f470e09 ui: FW log ratelimit: fix default value
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-16 10:30:34 +02:00
Thomas Lamprecht
df93368f74 ui: FW options: do not draw border arount rate limit separator
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-16 09:48:37 +02:00
Wolfgang Bumiller
6db00a0935 fix #2177: use getValue() to get otp value
as '.value' isn't always valid

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-04-16 11:53:00 +00:00
Thomas Lamprecht
2d41c7e6f2 ui: u2f: refactor error code map out and use in login window
to avoid showing numbers as error codes to users, even though the
strings are not much more helpful either...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-10 09:49:13 +02:00
Christian Ebner
677bb0e87b ui: Restore: Fix error where the textfield did not default to next free VMID
This was introduced when refactoring our seprated CT & VM ID
selectors into an unified one in
commit ed416f2024

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2019-04-10 09:09:10 +02:00
Dominik Csapak
7a42fc552f fix jslint warning
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-04-09 13:51:39 +02:00
Thomas Lamprecht
1102bcb160 ui: tfa login: wording followup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-08 16:59:50 +02:00
Thomas Lamprecht
45980a92d2 ui: login: remove fixed OTP field completely
we now have the TFALoginWindow which pops up if TFA is configured,
so use only this single stream lined approach.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-08 15:48:34 +02:00
Wolfgang Bumiller
313eb589de ui: use 2-step authentication for non-tfa realms
(Ext.Msg.prompt() fails on firefox...)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-04-08 14:14:52 +02:00
Wolfgang Bumiller
9807f21a62 Revert "ui: always show otp field"
This reverts commit 1702b529b6.
2019-04-08 14:14:52 +02:00
Thomas Lamprecht
8b030d0848 ui: restore: add tooltip for unique checkbox and declare static
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 12:37:17 +02:00
Christian Ebner
c517e21226 fix: #1218 Expose unique MAC address generation on restore of VMs and CTs in UI
Adds a checkbox to the restore window, allowing the user to avoid MAC address
collisions when restoring a VM/CT to a different vmid.
When restoring to the same vmid the checkbox is not visible.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2019-04-04 11:54:31 +02:00
Thomas Lamprecht
4c86db122c LoginWindow: make static
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 10:18:52 +02:00
Thomas Lamprecht
6a1c9c29d2 ui: tfa: make lint happy, declare globals
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 09:31:27 +02:00
Wolfgang Bumiller
24d2ed8c27 ui: support u2f authentication and configuration
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-04-03 15:26:37 +02:00
Wolfgang Bumiller
1702b529b6 ui: always show otp field
But make it optional.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-04-03 15:26:37 +02:00
Christian Ebner
40120a3120 Allow to set the firewall log rate limit and burst from the UI
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2019-04-01 14:59:16 +02:00
Thomas Lamprecht
7412755d27 fixup trailing whitespaces
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-29 13:12:11 +01:00
Tim Marx
f992ef807e ui: ceph: differentiate between install & configure only
Signed-off-by: Tim Marx <t.marx@proxmox.com>
2019-03-29 13:07:36 +01:00
Christian Ebner
75122e54d8 1145 Warn if datacenter firewall is disabled
This warns the user that the datacenter firewall is disabled when editing the
host or the VM/CT firewall status.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2019-03-13 10:03:32 +01:00
Tim Marx
4616a55b37 added basic ability to install ceph via gui
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
2019-03-08 12:33:31 +01:00