424 Commits

Author SHA1 Message Date
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
Thomas Lamprecht
ed34cd7a95 bump version to 2.2-9
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-30 13:36:09 +02:00
Thomas Lamprecht
b6d1735ae1 followup: s/storedUser/storedAuth/
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-30 13:27:29 +02:00
Tim Marx
63252ab6ab adapt auth utils for proxmox token authentication
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-30 13:25:14 +02:00
Dominik Csapak
bde489e51c add window/ZFSDetail
inspired by pve's detail window, which used two sub components
(ZFSStatus, ZFSDevices; which were never used elsewhere)
combined into one self-contained window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-06-25 15:58:18 +02:00
Dominik Csapak
a57a5c770a add form/MultiDiskSelector
from pve's ZFSCreate window, refactored to be self-contained using
field mixin, as well as be configureable enough to be used by pve as
well as other products

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-06-25 15:58:18 +02:00
Dominik Csapak
f29e6a669e Utils: add render_zfs_health
from pve-manager

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-06-25 15:58:18 +02:00
Thomas Lamprecht
2c3e308ceb bump version to 2.2-8
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-16 16:49:46 +02:00
Dominik Csapak
c9d603afff task viewer: show task endtime and duration in status
But only when the caller gives us the endtime, since the status API
call does not give us the endtime.

As we stop updating the store once a task isn't running anymore the
fallback to current unix utc timestamp doesn't needs an additional
check, the last one is shown static then.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
[ Thomas: improve commit message ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-16 13:22:59 +02:00
Dominik Csapak
402991a79d add DiskSmart window and DiskList from PVE
for use with other produts.

the models are now all prefixed with 'pmx' instead of pve, so they
should not conflict

includes some changes to the model for remapping some fields and
some small refactors (change to controller for the DiskList,
some cleanup of the initComponent of the DiskSmart window)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-06-16 11:34:37 +02:00