Commit Graph

563 Commits

Author SHA1 Message Date
Thomas Lamprecht
455f5fe5ed 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>
2020-11-23 13:19:27 +01:00
Thomas Lamprecht
9150498ca3 bump version to 2.4-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-23 08:14:55 +01:00
Thomas Lamprecht
914070be3e fixup prune field usage
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-23 08:08:12 +01:00
Thomas Lamprecht
1268e9fbe9 bump version to 2.4-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-22 18:12:59 +01:00
Thomas Lamprecht
abbb481864 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>
2020-11-22 18:12:59 +01:00
Thomas Lamprecht
8969bdadf6 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>
2020-11-21 20:03:18 +01:00
Thomas Lamprecht
8b1217145c edit window: add loadUrl to config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-21 20:03:18 +01:00
Thomas Lamprecht
4d07ee6cb9 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>
2020-11-21 20:03:18 +01:00
Thomas Lamprecht
9beeadc77a 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>
2020-11-21 20:03:18 +01:00
Thomas Lamprecht
03ea6d7971 toolkit: drop old jslint control comments
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-21 20:03:18 +01:00
Thomas Lamprecht
04eb02d970 panel: add PruneInputPanel
over from PBS

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-21 20:02:50 +01:00
Thomas Lamprecht
9b4b2e745b form: add PruneKeepField
over from PBS

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-21 20:02:45 +01:00
Aaron Lauterer
71a084c2ff 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>
2020-11-19 12:39:00 +01:00
Aaron Lauterer
71d5316545 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>
2020-11-19 12:39:00 +01:00
Thomas Lamprecht
2622cc7cca buildsys: add lint incremental mode, use stricter check mode for full build
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-12 10:10:19 +01:00
Thomas Lamprecht
a19ccbb9cd bump version to 2.3-10
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-10 16:29:15 +01:00
Thomas Lamprecht
63ec56e5bc utils: get help info: fix normalization with multiple minuses
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-10 16:27:43 +01:00
Thomas Lamprecht
1f905769b1 Revert "Utils: fix help section normalization"
replaceAll is not supported by all browser we try to guarantee to
support.

This reverts commit f7b816a399.
2020-11-10 16:26:27 +01:00
Thomas Lamprecht
4b21b8cc8e bump version to 2.3-9
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-10 12:09:02 +01:00
Aaron Lauterer
f7b816a399 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>
2020-11-10 11:53:29 +01:00
Dominik Csapak
5efbff97f8 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>
2020-11-09 08:01:11 +01:00
Thomas Lamprecht
6fb81c1519 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>
2020-11-09 07:56:42 +01:00
Thomas Lamprecht
58c180044a bump version to 2.3-8
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-03 17:52:09 +01:00
Thomas Lamprecht
20bf242648 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 96ffa5693e.
2020-11-03 17:51:12 +01:00
Thomas Lamprecht
2c0a748f42 task type selector: add clear trigger
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-03 14:41:43 +01:00
Dominik Csapak
3571d71343 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>
2020-11-03 12:40:45 +01:00
Thomas Lamprecht
96ffa5693e css: avoid inherit of font-size on .fa class, set to 14px
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-03 12:40:14 +01:00
Thomas Lamprecht
017e3e306d bump version to 2.3-7
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-02 07:49:27 +01:00
Thomas Lamprecht
16f2ad9717 buildsys: improve clean target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-02 07:41:30 +01:00
Thomas Lamprecht
7bb32b58d1 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>
2020-10-31 09:58:18 +01:00
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