Commit Graph

433 Commits

Author SHA1 Message Date
Dominik Csapak
050c168499 add form/TaskTypeSelector
for suggesting workery types when we want to filter by them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-10-30 18:19:33 +01:00
Thomas Lamprecht
57ba4cdcb3 make subscription status check compare lower case
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-29 14:18:42 +01:00
Thomas Lamprecht
fa94468a0f bump version to 2.3-6
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-28 18:39:44 +01:00
Fabian Grünbichler
b99a771b5f add PermissionView
copied from pve-manager, but handling both '1' and 'true' as propagate
values, and making the authentication ID name/parameter configurable.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2020-10-28 13:14:31 +01:00
Thomas Lamprecht
9244bb7242 edit window: add extraParams config
For passing some default params which are passed along automatically
when calling load and doing the submit.

Useful in PBS, as there we often have the snapshot ID in multiple
parameters, not included in the request path, required for various
API call.

The params take low precendence, and are overwritten by values in
form fields with the same name for submit, or explicit params passed
to load calls

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-28 13:12:03 +01:00
Thomas Lamprecht
1289d32611 edit window: whitespace/newline cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-28 12:53:52 +01:00
Thomas Lamprecht
ca204f31df window/edit: add autoLoadOptions to control API call
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-28 11:36:14 +01:00
Thomas Lamprecht
e951e37de4 bump version to 2.3-5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-27 18:34:44 +01:00
Thomas Lamprecht
a9bea10488 HostPort vtype: improve error message
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-27 16:40:46 +01:00
Dominik Csapak
0f687dd7b5 InfoWidget: add setData, so that we can bind it
with a setData function that calls our updateValue, we can now use
viewModel bind to update those widgets

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-10-23 20:34:14 +02:00
Dominik Csapak
4b44709a83 InfoWidget: eslint fixes
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-10-23 20:34:14 +02:00
Dominik Csapak
9354dc13a2 add info widget from pve
we want to reuse that, so copy it here and rename it to pmxInfoWidget

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-10-23 20:34:14 +02:00
Dominik Csapak
98d894d85a improve multiselect behaviour for checkboxmodel
when using the mode 'MULTI' for the checkbox selection model,
clicking a row would deselect all others, only clicking exactly on the
checkbox would select multiple rows

this override makes the whole cell of the checkbox behave like the
checkbox. This minimizes misclicks from the user.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-10-23 13:24:45 +02:00
Thomas Lamprecht
31780db0bb eslint fixup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 13:24:20 +02:00
Dietmar Maurer
2efe08de95 bump version to 2.3-4 2020-10-22 12:13:01 +02:00
Dietmar Maurer
6221e40cdd implement and use systemd_unescape 2020-10-22 12:10:29 +02:00
Thomas Lamprecht
51674ecc27 bump version to 2.3-3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-22 08:53:21 +02:00
Hannes Laimer
c63c63111f utils: add task description for directory removal
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
2020-10-22 08:48:46 +02:00
Hannes Laimer
12159d2cbd safe-destroy: add possibility to show a small note
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
2020-10-22 08:48:46 +02:00
Hannes Laimer
cbb36e759b safe-destroy: replace var with let/const
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
2020-10-22 08:48:46 +02:00
Hannes Laimer
b8b160d6e4 safe-destroy: replace type with purgeable and taskName
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
2020-10-22 08:48:46 +02:00
Hannes Laimer
90cb5fafad safe-destroy: eslint --fix
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
2020-10-22 08:48:46 +02:00
Hannes Laimer
8d86570caa safe-destroy: move SafeDestroy from pve-manager here
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
2020-10-22 08:48:46 +02:00
Dietmar Maurer
9427d6a988 correctly encode upid paramenter (use encodeURIComponent) 2020-10-22 08:48:14 +02:00
Thomas Lamprecht
c6047c4a1e bump version to 2.3-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-15 13:27:34 +02:00
Thomas Lamprecht
abfc18575e add Korean as translation choice
it was recently contributed by 김 주철

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-15 13:25:20 +02:00
Thomas Lamprecht
17ee839f6b bump version to 2.3-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-01 15:27:25 +02:00
Dominik Csapak
5252b7f12b Toolkit: add HostPort vtype
for easy checking textfield for a single host:port

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-10-01 10:09:50 +02:00
Dominik Csapak
a1d40d37ed Utils: improve matching groups of ip/host regexes
we only ever want to match the whole hostname/ip, never just some part of it
and we do not want to have the ':' as part of the port

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-10-01 10:09:41 +02:00
Dominik Csapak
aa9607f128 fix autoscrolling on browser zoom
when browser zoom is activated, our scrollposition can be a little bit off
increase the boundary by a few pixels (5px are ~1/3 of a line)
so that the auto-scrolling still works

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-10-01 06:11:08 +02:00
Thomas Lamprecht
ab277cb287 bump version to 2.2-14
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-09-29 10:18:10 +02:00
Thomas Lamprecht
54dc3ab4de node tasks: add duration column, hide by default
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-09-29 10:15:41 +02:00
Thomas Lamprecht
8e3f2973a8 task viewer: render tokenid as part of username
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-09-29 09:46:02 +02:00
Dominik Csapak
0c3ade1d32 node/Tasks: improve scroller behaviour on datastore loading
when we have a fixed totalcount, the scrollbar behaves nicely,
but sometimes we do not have a fixed total, so the api will return
'+1' if there are more elments to load

when doing this, the scrollbar has a weird behaviour where it changes
size frequently the more one scrolls down.

instead, tell the grid to update its layout as soon as the store
prefetches the data, which triggers an update of the scrollbar

this still lets it jump around a little, but only once per load and
more consistent

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-09-29 09:15:26 +02:00
Fabian Grünbichler
c2ad526694 tasks: include API token ID if available
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2020-09-23 15:12:49 +02:00
Thomas Lamprecht
aaa9ba62de bump version to 2.2-12
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-09-07 13:51:06 +02:00
Thomas Lamprecht
982fde8647 update copyright
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-09-07 13:49:32 +02:00
Thomas Lamprecht
6127ba8883 language_map: add Dutch
Contributed-by: Jorren Schauwaert <jorren.schauwaert@gmail.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-08-27 14:53:06 +02:00
Thomas Lamprecht
998237fcd7 utils: order languages after rendered name
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-08-27 14:52:44 +02:00
Thomas Lamprecht
3824e269c9 eslint fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-08-26 20:20:41 +02:00
Thomas Lamprecht
a718654e76 utils: improve indentation and better check API result
to avoid dereferencing a null/undefined value.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-08-26 20:20:41 +02:00
Dominik Csapak
abd4706afe fix #2933: correct behaviour of initgpt button
fixes 4 issues:
* use correct /api2/ext url to get the 'success' parameter
* check 'used' property for 'unused' (pbs vs pve)
* use 'name' instead of 'devpath' for id
  (name always contains the correct id for the product,
  e.g. /dev/sdd for pve and sdd for pbs)
* add a reload in taskDone to reload the list of disks when the inti is done

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-08-20 17:32:03 +02:00
Thomas Lamprecht
aa941c21aa bump version to 2.2-11
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-24 16:17:10 +02:00
Thomas Lamprecht
03feb4fb2f bump version to 2.2-10
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-24 16:09:01 +02:00
Thomas Lamprecht
2815c42893 service view: allow overwriting restart command
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-24 16:09:01 +02:00
Thomas Lamprecht
77ff40e479 service view: refactor assembling API path
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-24 16:09:01 +02:00
Thomas Lamprecht
26f17eb15a displayedit: allow passing an explicit displayConfig
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-24 16:09:01 +02:00
Thomas Lamprecht
41cf4ae184 displayedit: allow binding editable and value
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-24 16:09:01 +02:00
Thomas Lamprecht
7f56fd0cb0 onlineHelp: try finding - and _ normalized blockid variants
allows easy support of both separation variants, commonly used in
asciidoc or sphinx.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-21 16:28:25 +02:00
Fabian Möller
4f3b2a9398 Add focusable pseudo class to edit windows defaultFocus
Restricting the defaultFocus of the edit windows to only focusable fields
ensures that windows like "PVE -> Virtual Machine -> Manage HA", which
has a first field of xtype "displayfield", receive focus upon opening.

This allows those windows to be closed with the ESC key, which only
works when an element inside has focus.

In newer versions of ExtJS (>= 6.2.0) this filter could be reduced to
"field:canfocus" or maybe even ":canfocus".
2020-07-09 14:10:17 +02:00