]> git.proxmox.com Git - proxmox-widget-toolkit.git/log
proxmox-widget-toolkit.git
3 years agoprune panel: make keep-last label text like the others
Fabian Ebner [Fri, 27 Nov 2020 10:08:28 +0000 (11:08 +0100)]
prune panel: make keep-last label text like the others

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoinput panel: Add drawing of layout
Dominic Jäger [Fri, 27 Nov 2020 11:08:12 +0000 (12:08 +0100)]
input panel: Add drawing of layout

The drawing makes clear in a few seconds:
 - what columnT and columnB stand for
 - what additional containers and panels are created
 - to which of those the elements of column1, column2... go to

When you're in the JS debugger and lost overview of where in this
element hierarchy you are, you can quickly check xtype + layout. Then
consulting this drawing solves the mistery.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
3 years agofix usage of findRecord
Dominik Csapak [Thu, 26 Nov 2020 08:23:39 +0000 (09:23 +0100)]
fix usage of findRecord

findRecord does not match exactly, but only at the beginning and
case insensitive, by default. Change all calls to be case sensiti
and an exactmatch (we never want the default behaviour afaics).

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agogrid/DiskList: restore info about ceph
Dominik Csapak [Wed, 25 Nov 2020 15:37:07 +0000 (16:37 +0100)]
grid/DiskList: restore info about ceph

previously we printed this ceph info, but it got lost during
refactoring to widget-toolkit, restore a slightly modified
version of the code

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agobump version to 2.4-4
Thomas Lamprecht [Fri, 15 Jan 2021 15:24:12 +0000 (16:24 +0100)]
bump version to 2.4-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoreader: JsonObject: cope with empty (null) return value
Thomas Lamprecht [Fri, 15 Jan 2021 15:18:04 +0000 (16:18 +0100)]
reader: JsonObject: cope with empty (null) return value

there may be cases where the backend serialization plumping code
makes it easier to return null instead of a emtpy object if a
(sub)property or whole config is not configured, as it's closer to
the truth (not configured == null, configured but empty would be {})

For objects this resulted in a exception, as the null value was tried
to be dereferenced, avoid that by defaulting to an empty object in
that case.
For arrays we already coped with that by luck, make that more
explicit to avoid future breakage.

Both result to a empty array being returned as values, which means
empty store and is deemed to be OK in that case.

The rowdef.required still applies and adds empty values though, this
could be argued to not be really fitting - for now lets keep it that
way, we could make this opt-in though if it shows that it is not
always correct.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoreader: JsonObject: whitespace fixes
Thomas Lamprecht [Fri, 15 Jan 2021 15:17:35 +0000 (16:17 +0100)]
reader: JsonObject: whitespace fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: network: Remove bond-primary gettext
Dominic Jäger [Thu, 7 Jan 2021 08:32:14 +0000 (09:32 +0100)]
ui: network: Remove bond-primary gettext

The corresponding option  in /etc/network/interfaces is exactly "bond-primary".
Translating this might easily make unclear what is meant.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
3 years agobump version to 2.4-3
Thomas Lamprecht [Mon, 23 Nov 2020 17:46:09 +0000 (18:46 +0100)]
bump version to 2.4-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune panel: allow to pass emptyText for keep-last
Thomas Lamprecht [Mon, 23 Nov 2020 17:17:53 +0000 (18:17 +0100)]
prune panel: allow to pass emptyText for keep-last

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune field: use dirtychange event to hide/show clear-trigger
Thomas Lamprecht [Mon, 23 Nov 2020 17:17:23 +0000 (18:17 +0100)]
prune field: use dirtychange event to hide/show clear-trigger

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoinput panel: support convenience top column
Thomas Lamprecht [Mon, 23 Nov 2020 12:13:23 +0000 (13:13 +0100)]
input panel: support convenience top column

mirrors columnB (column bottom) but is placed on the top, i.e.,
columnT.

One can no conveniently set the following layout:

  +-------------------------------------+
  |                                     |
  |               columnT               |
  |                                     |
  +------------------+------------------+
  |                  |                  |
  |                  |                  |
  |   column1        |   column2        |
  |                  |                  |
  |                  |                  |
  +------------------+------------------+
  |                                     |
  |               columnB               |
  |                                     |
  +-------------------------------------+

(4 columns should work too, but we do not use that anywhere FWICT)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.4-2
Thomas Lamprecht [Mon, 23 Nov 2020 07:14:55 +0000 (08:14 +0100)]
bump version to 2.4-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofixup prune field usage
Thomas Lamprecht [Mon, 23 Nov 2020 07:08:12 +0000 (08:08 +0100)]
fixup prune field usage

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.4-1
Thomas Lamprecht [Sun, 22 Nov 2020 17:04:39 +0000 (18:04 +0100)]
bump version to 2.4-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agocss: unify button icon font-size to 14px
Thomas Lamprecht [Sun, 22 Nov 2020 17:12:22 +0000 (18:12 +0100)]
css: unify button icon font-size to 14px

in a central place, we already have some of those set in pve or pbs
css

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoedit window: url is optional if both loadUrl and submitUrl are set
Thomas Lamprecht [Sat, 21 Nov 2020 18:42:57 +0000 (19:42 +0100)]
edit window: url is optional if both loadUrl and submitUrl are set

but it cannot be the default identityFn in that case..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoedit window: add loadUrl to config
Thomas Lamprecht [Sat, 21 Nov 2020 18:41:01 +0000 (19:41 +0100)]
edit window: add loadUrl to config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoedit window: add submitUrl config
Thomas Lamprecht [Sat, 21 Nov 2020 16:17:33 +0000 (17:17 +0100)]
edit window: add submitUrl config

Helps for those cases where the id is in the API path itself.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoinput panel: make advanced column check more flexible
Thomas Lamprecht [Sat, 21 Nov 2020 16:15:13 +0000 (17:15 +0100)]
input panel: make advanced column check more flexible

allow that any of the three column/docked definitions can be set,
without setting the first one to an empty array to go in that if
branch.

Note, column2 works fine, but I did not greatly test a sole
advancedColumnB definition, so there may be still some improvements
for fixes - but at that point the user could also use advancedItems
to have full control.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agotoolkit: drop old jslint control comments
Thomas Lamprecht [Sat, 21 Nov 2020 16:14:15 +0000 (17:14 +0100)]
toolkit: drop old jslint control comments

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopanel: add PruneInputPanel
Thomas Lamprecht [Sat, 21 Nov 2020 19:02:28 +0000 (20:02 +0100)]
panel: add PruneInputPanel

over from PBS

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoform: add PruneKeepField
Thomas Lamprecht [Sat, 21 Nov 2020 19:02:00 +0000 (20:02 +0100)]
form: add PruneKeepField

over from PBS

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoInputPanel: remove old code for useFieldContainer
Aaron Lauterer [Tue, 17 Nov 2020 13:50:43 +0000 (14:50 +0100)]
InputPanel: remove old code for useFieldContainer

`useFieldContainer` doesn't seem to be used anymore in any of our
products:
* PVE
* PMG
* PBS

it therefore can be considered dead code.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agoInputPanel: fix column scaling behavior
Aaron Lauterer [Tue, 17 Nov 2020 13:50:42 +0000 (14:50 +0100)]
InputPanel: fix column scaling behavior

When scaling the browsers content either via the browser itself or
because the OS has a different scaling / DPI setting, it can happen that
not all columns have enough space next to each other and thus the last
column is moved further below.

This happens especially on chromium bases browsers (e.g. chrome, edge).

Changing the layout to use extjs HBOXes with flex instead of columns
solves works well.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agobuildsys: add lint incremental mode, use stricter check mode for full build
Thomas Lamprecht [Thu, 12 Nov 2020 09:10:19 +0000 (10:10 +0100)]
buildsys: add lint incremental mode, use stricter check mode for full build

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.3-10
Thomas Lamprecht [Tue, 10 Nov 2020 15:29:15 +0000 (16:29 +0100)]
bump version to 2.3-10

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoutils: get help info: fix normalization with multiple minuses
Thomas Lamprecht [Tue, 10 Nov 2020 15:27:43 +0000 (16:27 +0100)]
utils: get help info: fix normalization with multiple minuses

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoRevert "Utils: fix help section normalization"
Thomas Lamprecht [Tue, 10 Nov 2020 15:26:27 +0000 (16:26 +0100)]
Revert "Utils: fix help section normalization"

replaceAll is not supported by all browser we try to guarantee to
support.

This reverts commit f7b816a39987b37ebcc976eb78cf33da2ad37bf3.

3 years agobump version to 2.3-9
Thomas Lamprecht [Tue, 10 Nov 2020 11:09:02 +0000 (12:09 +0100)]
bump version to 2.3-9

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoUtils: fix help section normalization
Aaron Lauterer [Tue, 10 Nov 2020 09:34:13 +0000 (10:34 +0100)]
Utils: fix help section normalization

We need to replace all occurences when normalizing underscores or
dashes.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agocomboGrid: set errorMask on store load failure
Dominik Csapak [Wed, 4 Nov 2020 14:17:40 +0000 (15:17 +0100)]
comboGrid: set errorMask on store load failure

if there occured an error in the api call of the store, show this error
on the picker when opened, instead of just showing an empty picker

this makes it possible to see that there was an error while accessing the api

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoenable ARIA again
Thomas Lamprecht [Mon, 9 Nov 2020 06:56:34 +0000 (07:56 +0100)]
enable ARIA again

we have everything updated to ExtJS 6.x since quite a bit, and some
quick checks on various components did not show any error - lets
enable this again.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.3-8
Thomas Lamprecht [Tue, 3 Nov 2020 16:52:09 +0000 (17:52 +0100)]
bump version to 2.3-8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoRevert "css: avoid inherit of font-size on .fa class, set to 14px"
Thomas Lamprecht [Tue, 3 Nov 2020 16:51:12 +0000 (17:51 +0100)]
Revert "css: avoid inherit of font-size on .fa class, set to 14px"

this is not yet safe everywhere, makes some dashboard icons quite
small

This reverts commit 96ffa5693e0eeb4b6a9664832035fbc154bc92d6.

3 years agotask type selector: add clear trigger
Thomas Lamprecht [Tue, 3 Nov 2020 12:58:12 +0000 (13:58 +0100)]
task type selector: add clear trigger

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoUtils: remove product specific task descriptions
Dominik Csapak [Fri, 30 Oct 2020 13:02:55 +0000 (14:02 +0100)]
Utils: remove product specific task descriptions

we use 'override_task_descriptions' in the specific products to
add the ones that are not used everywhere

took the chance and sorted the remaining alphabetically

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agocss: avoid inherit of font-size on .fa class, set to 14px
Thomas Lamprecht [Tue, 3 Nov 2020 11:40:14 +0000 (12:40 +0100)]
css: avoid inherit of font-size on .fa class, set to 14px

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.3-7
Thomas Lamprecht [Mon, 2 Nov 2020 06:49:27 +0000 (07:49 +0100)]
bump version to 2.3-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobuildsys: improve clean target
Thomas Lamprecht [Mon, 2 Nov 2020 06:41:30 +0000 (07:41 +0100)]
buildsys: improve clean target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agocss: improve icon rendering
Thomas Lamprecht [Sat, 31 Oct 2020 08:52:10 +0000 (09:52 +0100)]
css: improve icon rendering

Font Awesome is intended to be used at 14px font-size, we set that
already over product specific CSS for some elements like buttons.

But, for tab panel icons and tree navigation views it was often
overruled by ExtJS to 13px which made look them quite blurry and even
the position was a bit off (to high when compared to the texts
baseline.

Fix that by overwriting the font-size to 14px of the
x-treelist-item-icon and x-tab-icon-el-default class, for the latter
improve the icon to text possition by setting a slight top margin.

Setting the color to black was already done by each product, so move
that over here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadd form/TaskTypeSelector
Dominik Csapak [Fri, 30 Oct 2020 14:02:09 +0000 (15:02 +0100)]
add form/TaskTypeSelector

for suggesting workery types when we want to filter by them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agomake subscription status check compare lower case
Thomas Lamprecht [Thu, 29 Oct 2020 13:18:42 +0000 (14:18 +0100)]
make subscription status check compare lower case

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.3-6
Thomas Lamprecht [Wed, 28 Oct 2020 17:39:44 +0000 (18:39 +0100)]
bump version to 2.3-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadd PermissionView
Fabian Grünbichler [Wed, 28 Oct 2020 11:36:22 +0000 (12:36 +0100)]
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>
3 years agoedit window: add extraParams config
Thomas Lamprecht [Wed, 28 Oct 2020 11:54:25 +0000 (12:54 +0100)]
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>
3 years agoedit window: whitespace/newline cleanups
Thomas Lamprecht [Wed, 28 Oct 2020 11:53:52 +0000 (12:53 +0100)]
edit window: whitespace/newline cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agowindow/edit: add autoLoadOptions to control API call
Thomas Lamprecht [Wed, 28 Oct 2020 10:36:14 +0000 (11:36 +0100)]
window/edit: add autoLoadOptions to control API call

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.3-5
Thomas Lamprecht [Tue, 27 Oct 2020 17:34:44 +0000 (18:34 +0100)]
bump version to 2.3-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoHostPort vtype: improve error message
Thomas Lamprecht [Thu, 1 Oct 2020 08:30:58 +0000 (10:30 +0200)]
HostPort vtype: improve error message

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoInfoWidget: add setData, so that we can bind it
Dominik Csapak [Fri, 23 Oct 2020 14:29:54 +0000 (16:29 +0200)]
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>
3 years agoInfoWidget: eslint fixes
Dominik Csapak [Fri, 23 Oct 2020 14:29:53 +0000 (16:29 +0200)]
InfoWidget: eslint fixes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoadd info widget from pve
Dominik Csapak [Fri, 23 Oct 2020 14:29:52 +0000 (16:29 +0200)]
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>
3 years agoimprove multiselect behaviour for checkboxmodel
Dominik Csapak [Wed, 22 Apr 2020 07:26:23 +0000 (09:26 +0200)]
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>
3 years agoeslint fixup
Thomas Lamprecht [Thu, 22 Oct 2020 10:27:23 +0000 (12:27 +0200)]
eslint fixup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.3-4
Dietmar Maurer [Thu, 22 Oct 2020 10:13:01 +0000 (12:13 +0200)]
bump version to 2.3-4

3 years agoimplement and use systemd_unescape
Dietmar Maurer [Thu, 22 Oct 2020 10:09:16 +0000 (12:09 +0200)]
implement and use systemd_unescape

3 years agobump version to 2.3-3
Thomas Lamprecht [Thu, 22 Oct 2020 06:53:21 +0000 (08:53 +0200)]
bump version to 2.3-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoutils: add task description for directory removal
Hannes Laimer [Tue, 15 Sep 2020 09:54:16 +0000 (11:54 +0200)]
utils: add task description for directory removal

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agosafe-destroy: add possibility to show a small note
Hannes Laimer [Tue, 15 Sep 2020 09:54:15 +0000 (11:54 +0200)]
safe-destroy: add possibility to show a small note

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agosafe-destroy: replace var with let/const
Hannes Laimer [Tue, 15 Sep 2020 09:54:14 +0000 (11:54 +0200)]
safe-destroy: replace var with let/const

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agosafe-destroy: replace type with purgeable and taskName
Hannes Laimer [Tue, 15 Sep 2020 09:54:13 +0000 (11:54 +0200)]
safe-destroy: replace type with purgeable and taskName

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agosafe-destroy: eslint --fix
Hannes Laimer [Tue, 15 Sep 2020 09:54:12 +0000 (11:54 +0200)]
safe-destroy: eslint --fix

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agosafe-destroy: move SafeDestroy from pve-manager here
Hannes Laimer [Tue, 15 Sep 2020 09:54:11 +0000 (11:54 +0200)]
safe-destroy: move SafeDestroy from pve-manager here

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agocorrectly encode upid paramenter (use encodeURIComponent)
Dietmar Maurer [Thu, 22 Oct 2020 06:38:17 +0000 (08:38 +0200)]
correctly encode upid paramenter (use encodeURIComponent)

3 years agobump version to 2.3-2
Thomas Lamprecht [Thu, 15 Oct 2020 11:27:34 +0000 (13:27 +0200)]
bump version to 2.3-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadd Korean as translation choice
Thomas Lamprecht [Thu, 15 Oct 2020 11:24:43 +0000 (13:24 +0200)]
add Korean as translation choice

it was recently contributed by 김 주철

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.3-1
Thomas Lamprecht [Thu, 1 Oct 2020 13:27:25 +0000 (15:27 +0200)]
bump version to 2.3-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoToolkit: add HostPort vtype
Dominik Csapak [Thu, 1 Oct 2020 07:57:55 +0000 (09:57 +0200)]
Toolkit: add HostPort vtype

for easy checking textfield for a single host:port

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoUtils: improve matching groups of ip/host regexes
Dominik Csapak [Thu, 1 Oct 2020 07:57:54 +0000 (09:57 +0200)]
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>
3 years agofix autoscrolling on browser zoom
Dominik Csapak [Wed, 30 Sep 2020 12:04:39 +0000 (14:04 +0200)]
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>
3 years agobump version to 2.2-14
Thomas Lamprecht [Tue, 29 Sep 2020 08:18:10 +0000 (10:18 +0200)]
bump version to 2.2-14

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agonode tasks: add duration column, hide by default
Thomas Lamprecht [Tue, 29 Sep 2020 08:15:41 +0000 (10:15 +0200)]
node tasks: add duration column, hide by default

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agotask viewer: render tokenid as part of username
Thomas Lamprecht [Tue, 29 Sep 2020 07:46:02 +0000 (09:46 +0200)]
task viewer: render tokenid as part of username

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agonode/Tasks: improve scroller behaviour on datastore loading
Dominik Csapak [Fri, 25 Sep 2020 14:13:27 +0000 (16:13 +0200)]
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>
3 years agotasks: include API token ID if available
Fabian Grünbichler [Wed, 23 Sep 2020 08:38:49 +0000 (10:38 +0200)]
tasks: include API token ID if available

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agobump version to 2.2-12
Thomas Lamprecht [Mon, 7 Sep 2020 11:51:06 +0000 (13:51 +0200)]
bump version to 2.2-12

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoupdate copyright
Thomas Lamprecht [Mon, 7 Sep 2020 11:49:32 +0000 (13:49 +0200)]
update copyright

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agolanguage_map: add Dutch
Thomas Lamprecht [Thu, 27 Aug 2020 12:52:50 +0000 (14:52 +0200)]
language_map: add Dutch

Contributed-by: Jorren Schauwaert <jorren.schauwaert@gmail.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoutils: order languages after rendered name
Thomas Lamprecht [Thu, 27 Aug 2020 12:52:44 +0000 (14:52 +0200)]
utils: order languages after rendered name

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoeslint fixes
Thomas Lamprecht [Wed, 26 Aug 2020 18:01:36 +0000 (20:01 +0200)]
eslint fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoutils: improve indentation and better check API result
Thomas Lamprecht [Wed, 26 Aug 2020 18:02:35 +0000 (20:02 +0200)]
utils: improve indentation and better check API result

to avoid dereferencing a null/undefined value.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofix #2933: correct behaviour of initgpt button
Dominik Csapak [Fri, 14 Aug 2020 08:33:52 +0000 (10:33 +0200)]
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>
3 years agobump version to 2.2-11
Thomas Lamprecht [Fri, 24 Jul 2020 14:17:10 +0000 (16:17 +0200)]
bump version to 2.2-11

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 2.2-10
Thomas Lamprecht [Fri, 24 Jul 2020 14:01:48 +0000 (16:01 +0200)]
bump version to 2.2-10

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoservice view: allow overwriting restart command
Thomas Lamprecht [Fri, 24 Jul 2020 12:06:58 +0000 (14:06 +0200)]
service view: allow overwriting restart command

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoservice view: refactor assembling API path
Thomas Lamprecht [Fri, 24 Jul 2020 12:05:51 +0000 (14:05 +0200)]
service view: refactor assembling API path

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodisplayedit: allow passing an explicit displayConfig
Thomas Lamprecht [Fri, 24 Jul 2020 11:59:47 +0000 (13:59 +0200)]
displayedit: allow passing an explicit displayConfig

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodisplayedit: allow binding editable and value
Thomas Lamprecht [Fri, 24 Jul 2020 11:59:27 +0000 (13:59 +0200)]
displayedit: allow binding editable and value

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoonlineHelp: try finding - and _ normalized blockid variants
Thomas Lamprecht [Tue, 21 Jul 2020 14:28:22 +0000 (16:28 +0200)]
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>
3 years agoAdd focusable pseudo class to edit windows defaultFocus
Fabian Möller [Wed, 8 Jul 2020 08:42:42 +0000 (10:42 +0200)]
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".

3 years agobump version to 2.2-9
Thomas Lamprecht [Tue, 30 Jun 2020 11:36:09 +0000 (13:36 +0200)]
bump version to 2.2-9

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofollowup: s/storedUser/storedAuth/
Thomas Lamprecht [Tue, 30 Jun 2020 11:27:29 +0000 (13:27 +0200)]
followup: s/storedUser/storedAuth/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadapt auth utils for proxmox token authentication
Tim Marx [Thu, 7 May 2020 12:28:24 +0000 (14:28 +0200)]
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>
3 years agoadd window/ZFSDetail
Dominik Csapak [Thu, 25 Jun 2020 11:59:32 +0000 (13:59 +0200)]
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>
3 years agoadd form/MultiDiskSelector
Dominik Csapak [Thu, 25 Jun 2020 11:59:31 +0000 (13:59 +0200)]
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>
3 years agoUtils: add render_zfs_health
Dominik Csapak [Thu, 25 Jun 2020 11:59:30 +0000 (13:59 +0200)]
Utils: add render_zfs_health

from pve-manager

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agobump version to 2.2-8
Thomas Lamprecht [Tue, 16 Jun 2020 14:49:46 +0000 (16:49 +0200)]
bump version to 2.2-8

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agotask viewer: show task endtime and duration in status
Dominik Csapak [Mon, 15 Jun 2020 14:07:10 +0000 (16:07 +0200)]
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>
3 years agoadd DiskSmart window and DiskList from PVE
Dominik Csapak [Tue, 16 Jun 2020 09:06:34 +0000 (11:06 +0200)]
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>