]> git.proxmox.com Git - pve-manager-legacy.git/log
pve-manager-legacy.git
6 years agofix #1573: show bootdisk usage on container summary
Dominik Csapak [Tue, 28 Nov 2017 13:05:01 +0000 (14:05 +0100)]
fix #1573: show bootdisk usage on container summary

we have the information, so show it
this does not change the output for vms, where we do not have
any information about disk usage at all

if we add the 'disk' info to vms, it will magically work there then

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoStatusView.js: call renderer in context of field
Dominik Csapak [Fri, 26 Jan 2018 12:30:20 +0000 (13:30 +0100)]
StatusView.js: call renderer in context of field

so that we can access the field inside the renderer

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoInfoWidget.js: make printBar toggleable at runtime
Dominik Csapak [Fri, 26 Jan 2018 12:29:08 +0000 (13:29 +0100)]
InfoWidget.js: make printBar toggleable at runtime

we add a setPrintBar function, where we can make the
progressbar visible/hide it at runtime

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofix edit button for some panels
Dominik Csapak [Wed, 7 Feb 2018 09:11:22 +0000 (10:11 +0100)]
fix edit button for some panels

when using the 'run_editor' function provided by the ObjectGrid,
we have to make sure the function runs in the context of the grid,
not in that of the button, else we cannot access the
selectionModel/rows/etc. of the grid

this happened with the switch to the widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agofix #1629: improve min/max memory handling
Dominik Csapak [Thu, 25 Jan 2018 14:55:11 +0000 (15:55 +0100)]
fix #1629: improve min/max memory handling

instead of directly setting the minvalue when the maxvalue is lower
we invalidate it and only on blur we set the minvalue

without this we lose the minvalue when editing only the maxvalue

e.g.:

Max: 2048
Min: 1024

if we now edit the maxvalue to 4096, on pressing the '4', we are
setting the minvalue to '4' because 4 is lower than 1024

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofix #1631: change units to binary prefix
Dominik Csapak [Thu, 25 Jan 2018 14:55:10 +0000 (15:55 +0100)]
fix #1631: change units to binary prefix

we always expected MiB/GiB but labeled them incorrectly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofix #1635: correctly change maxIds in ControllerSelector in wizard
Dominik Csapak [Tue, 30 Jan 2018 09:34:14 +0000 (10:34 +0100)]
fix #1635: correctly change maxIds in ControllerSelector in wizard

we want to change the maxIds value even when not rendered, since
in the wizard, the controller can change from a different panel in the
tabpanel

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoenable/disable xtermjs depending on the existance of a serial port
Dominik Csapak [Fri, 26 Jan 2018 10:58:03 +0000 (11:58 +0100)]
enable/disable xtermjs depending on the existance of a serial port

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoshow serial ports on the gui
Dominik Csapak [Fri, 26 Jan 2018 10:58:02 +0000 (11:58 +0100)]
show serial ports on the gui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agochange group of unused to 99 to that we can add things in between
Dominik Csapak [Fri, 26 Jan 2018 10:58:01 +0000 (11:58 +0100)]
change group of unused to 99 to that we can add things in between

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoadd icon/class for serial ports
Dominik Csapak [Fri, 26 Jan 2018 10:58:00 +0000 (11:58 +0100)]
add icon/class for serial ports

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoqemu/Monitor: save the last 20 commands
Dominik Csapak [Fri, 26 Jan 2018 14:25:26 +0000 (15:25 +0100)]
qemu/Monitor: save the last 20 commands

and make them available with the up/down arrow key

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobump version to 5.1-44
Wolfgang Bumiller [Thu, 25 Jan 2018 12:59:01 +0000 (13:59 +0100)]
bump version to 5.1-44

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agouse API2Request from Proxmox.Utils in mobile interface
Dominik Csapak [Fri, 26 Jan 2018 07:52:55 +0000 (08:52 +0100)]
use API2Request from Proxmox.Utils in mobile interface

this was missing from the migration to the widget-toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agochange PVE.UserName/CSRFPreventionToken to Proxmox
Dominik Csapak [Thu, 25 Jan 2018 13:36:51 +0000 (14:36 +0100)]
change PVE.UserName/CSRFPreventionToken to Proxmox

this is now all in the widget-toolkit and needs to be
set/read to/from there, else we possibly get an inconsistent view on
those

this fixes as issue, where after login the ResourceStore would not update

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoremove now unused translations
Thomas Lamprecht [Tue, 23 Jan 2018 09:55:18 +0000 (10:55 +0100)]
remove now unused translations

We use proxmox-i18n now and merged those files there already

6 years agoreuse Toolkit from widget toolkit
Thomas Lamprecht [Tue, 16 Jan 2018 12:29:47 +0000 (13:29 +0100)]
reuse Toolkit from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoRealmComboBox: use schematic declaration and ViewController
Thomas Lamprecht [Mon, 11 Dec 2017 14:47:14 +0000 (15:47 +0100)]
RealmComboBox: use schematic declaration and ViewController

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse InputPanel from widget toolkit
Thomas Lamprecht [Mon, 11 Dec 2017 15:10:13 +0000 (16:10 +0100)]
use InputPanel from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse LogView from widget toolkit
Thomas Lamprecht [Mon, 11 Dec 2017 15:06:50 +0000 (16:06 +0100)]
use LogView from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse GaugeWidget from widget toolkit
Thomas Lamprecht [Mon, 11 Dec 2017 13:57:13 +0000 (14:57 +0100)]
use GaugeWidget from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse RestProxy from widget toolkit
Thomas Lamprecht [Mon, 11 Dec 2017 13:46:51 +0000 (14:46 +0100)]
use RestProxy from widget toolkit

Split PVE specific models, which where not moved to the general
widget toolkit, in a separate folder: data/models/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse ObjectStore from widget toolkit
Thomas Lamprecht [Mon, 11 Dec 2017 12:50:25 +0000 (13:50 +0100)]
use ObjectStore from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse TimezoneStore from widget toolkit
Thomas Lamprecht [Mon, 11 Dec 2017 12:09:31 +0000 (13:09 +0100)]
use TimezoneStore from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse DiffStore from widget toolkit
Thomas Lamprecht [Mon, 11 Dec 2017 11:05:39 +0000 (12:05 +0100)]
use DiffStore from widget toolkit

The alias stayed the same (store.diff) so we need to change direct
usage of 'PVE.data.DiffStore' only.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse HelpButton from widget toolkit
Thomas Lamprecht [Mon, 11 Dec 2017 10:25:58 +0000 (11:25 +0100)]
use HelpButton from widget toolkit

Proxmox.button.Help renamed the css class for the button styling, as
this class is only used rarely and the widget toolkit does not
provides a (shared) css file itself, just rename it here too.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse window.PasswordEdit from widget toolkit
Thomas Lamprecht [Thu, 7 Dec 2017 08:58:50 +0000 (09:58 +0100)]
use window.PasswordEdit from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse TaskViewer & TaskProgress window from widget toolkit
Thomas Lamprecht [Wed, 6 Dec 2017 17:30:16 +0000 (18:30 +0100)]
use TaskViewer & TaskProgress window from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse windowEdit from widget toolkit
Thomas Lamprecht [Wed, 6 Dec 2017 17:12:41 +0000 (18:12 +0100)]
use windowEdit from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse PendingObjectGrid from widget toolkit
Thomas Lamprecht [Wed, 6 Dec 2017 17:02:00 +0000 (18:02 +0100)]
use PendingObjectGrid from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoqemu/Options: cleanup & use new features from ObjectGrid
Thomas Lamprecht [Wed, 6 Dec 2017 16:54:30 +0000 (17:54 +0100)]
qemu/Options: cleanup & use new features from ObjectGrid

Ther's a little delay with the revert button on pending changes, but
that was the case previously too, so don't worry for that in this
patch

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agogrid/FireWallOptions: cleanup & use new features from ObjectGrid
Thomas Lamprecht [Wed, 6 Dec 2017 16:28:41 +0000 (17:28 +0100)]
grid/FireWallOptions: cleanup & use new features from ObjectGrid

switch add_boolean and add_integer row to a simple wrapper.
We really use it often and can save quite some lines with it so it
does not make sense to remove it completely yet.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agolxc/Options: cleanup & use a few new features from ObjectGrid
Thomas Lamprecht [Wed, 6 Dec 2017 15:59:02 +0000 (16:59 +0100)]
lxc/Options: cleanup & use a few new features from ObjectGrid

Use also same store update interval as qemu/Options

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agolxc/Resources: cleanup & use new features from ObjectGrid
Thomas Lamprecht [Wed, 6 Dec 2017 15:51:45 +0000 (16:51 +0100)]
lxc/Resources: cleanup & use new features from ObjectGrid

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agodc/OptionView: cleanup & use new features from ObjectGrid
Thomas Lamprecht [Wed, 6 Dec 2017 14:09:23 +0000 (15:09 +0100)]
dc/OptionView: cleanup & use new features from ObjectGrid

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse ObjectGrid from widget toolkit
Thomas Lamprecht [Wed, 6 Dec 2017 12:49:24 +0000 (13:49 +0100)]
use ObjectGrid from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse KVCombobox from widget toolkit
Thomas Lamprecht [Wed, 6 Dec 2017 11:16:07 +0000 (12:16 +0100)]
use KVCombobox from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse RRDTypeSelector from widget toolkit
Thomas Lamprecht [Wed, 6 Dec 2017 11:05:57 +0000 (12:05 +0100)]
use RRDTypeSelector from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse Checkbox from widget toolkit
Thomas Lamprecht [Tue, 5 Dec 2017 13:06:40 +0000 (14:06 +0100)]
use Checkbox from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse BondModeSelector & BondPolicySelector from widget toolkit
Thomas Lamprecht [Tue, 5 Dec 2017 13:01:07 +0000 (14:01 +0100)]
use BondModeSelector & BondPolicySelector from widget toolkit

widget name stayed the same, so no need to change

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse LanguageSelector from widget toolkit
Thomas Lamprecht [Tue, 5 Dec 2017 12:55:28 +0000 (13:55 +0100)]
use LanguageSelector from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoremove unneeded SendKeyMenu
Dominik Csapak [Mon, 15 Jan 2018 14:18:10 +0000 (15:18 +0100)]
remove unneeded SendKeyMenu

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse Proxmox.Utils instead of PVE.Utils
Dominik Csapak [Mon, 15 Jan 2018 14:18:09 +0000 (15:18 +0100)]
use Proxmox.Utils instead of PVE.Utils

some function are now in Proxmox.Utils instead, so we have to use that

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse Button from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:18:08 +0000 (15:18 +0100)]
use Button from widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse Proxmox.button.StdRemoveButton where possible
Dominik Csapak [Mon, 15 Jan 2018 14:18:07 +0000 (15:18 +0100)]
use Proxmox.button.StdRemoveButton where possible

most 'Remove' buttons we have used the same code pattern over and over,
with the StdRemoveButton we have a component which does all of this for
us

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agocreate some models
Dominik Csapak [Mon, 15 Jan 2018 14:18:06 +0000 (15:18 +0100)]
create some models

we want to use the getId method of some records, but for this
we need that the records are defined as an instance of a model,
so we create some and use them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse DNSView/DNSEdit from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:18:05 +0000 (15:18 +0100)]
use DNSView/DNSEdit from widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoadd 'service' parameter to syslog api call
Dominik Csapak [Mon, 15 Jan 2018 14:18:04 +0000 (15:18 +0100)]
add 'service' parameter to syslog api call

so that we can filter the journal by service

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse ServiceView from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:18:03 +0000 (15:18 +0100)]
use ServiceView from widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse Tasks from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:18:02 +0000 (15:18 +0100)]
use Tasks from widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agochange pve-invalid-row class to proxmox-invalid-row
Dominik Csapak [Mon, 15 Jan 2018 14:18:01 +0000 (15:18 +0100)]
change pve-invalid-row class to proxmox-invalid-row

because we will use that in the widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse UpdateStore from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:18:00 +0000 (15:18 +0100)]
use UpdateStore from widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse JsonObject from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:17:59 +0000 (15:17 +0100)]
use JsonObject from widget toolkit

same xtype/alias, so there is nothing to do except remove it from
pve-manager

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse RRDChart and RRDStore from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:17:58 +0000 (15:17 +0100)]
use RRDChart and RRDStore from widget toolkit

also remove old unused RRDView

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoadd rrd models
Dominik Csapak [Mon, 15 Jan 2018 14:17:57 +0000 (15:17 +0100)]
add rrd models

they will be used with the rrdstore

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoremove unused MigrateAll window
Dominik Csapak [Mon, 15 Jan 2018 14:17:56 +0000 (15:17 +0100)]
remove unused MigrateAll window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse NodeAPT grid from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:17:55 +0000 (15:17 +0100)]
use NodeAPT grid from widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse NetworkView/NetworkEdit from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:17:54 +0000 (15:17 +0100)]
use NetworkView/NetworkEdit from widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse TimeView and TimeEdit from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:17:53 +0000 (15:17 +0100)]
use TimeView and TimeEdit from widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse IntegerField from widget toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:17:52 +0000 (15:17 +0100)]
use IntegerField from widget toolkit

there we implemented deleteEmpty, which we can use in some cases.
this also fixes a bug in the ControllerSelector where
an empty field would be allowed (but should not)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse TextField from proxmox-widget-toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:17:51 +0000 (15:17 +0100)]
use TextField from proxmox-widget-toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse ComboGrid from proxmox-widget-toolkit
Dominik Csapak [Mon, 15 Jan 2018 14:17:50 +0000 (15:17 +0100)]
use ComboGrid from proxmox-widget-toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agouse pve-i18n package
Dominik Csapak [Mon, 22 Jan 2018 12:41:20 +0000 (13:41 +0100)]
use pve-i18n package

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd proxmox-widget-toolkit to pve gui
Dominik Csapak [Mon, 15 Jan 2018 14:17:49 +0000 (15:17 +0100)]
add proxmox-widget-toolkit to pve gui

we will use components from proxmox-widget-toolkit rather than
directly from pve-manager

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agocorrect the upgradecmd for xtermjs
Dominik Csapak [Wed, 17 Jan 2018 09:33:19 +0000 (10:33 +0100)]
correct the upgradecmd for xtermjs

use the pveupgrade command directly without bash inbetween,
the incorrect quoting led to '--shell' not being passed to
pveupgrade and closing the connection

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobump version to 5.1-43
Fabian Grünbichler [Wed, 17 Jan 2018 08:09:14 +0000 (09:09 +0100)]
bump version to 5.1-43

6 years agoadd spec-ctrl cpu flag checkbox
Dominik Csapak [Tue, 16 Jan 2018 13:51:21 +0000 (14:51 +0100)]
add spec-ctrl cpu flag checkbox

also make the mechanism for the flag checkboxes generic

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoadd defaultSize parameter for DiskStorageSelector and set it to 8 for lxc
Dominik Csapak [Wed, 13 Dec 2017 10:34:48 +0000 (11:34 +0100)]
add defaultSize parameter for DiskStorageSelector and set it to 8 for lxc

we had it previously on 8GB for containers, but with the refactoring,
this got lost. this patch changes this back

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobump version to 5.1-42
Wolfgang Bumiller [Wed, 10 Jan 2018 10:53:42 +0000 (11:53 +0100)]
bump version to 5.1-42

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoreadability fixup
Wolfgang Bumiller [Wed, 10 Jan 2018 10:47:26 +0000 (11:47 +0100)]
readability fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoadd PCID checkbox to ProcessorEdit
Dominik Csapak [Tue, 9 Jan 2018 15:27:39 +0000 (16:27 +0100)]
add PCID checkbox to ProcessorEdit

but not in wizard, and default is off
(because we do not know if the cpu supports it)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agofix #1605: reflect backend values of minimum memory limit
Wolfgang Bumiller [Wed, 27 Dec 2017 10:42:48 +0000 (11:42 +0100)]
fix #1605: reflect backend values of minimum memory limit

The backend's minimum value for container memory is 16M,
not 32.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agobump version to 5.1-41
Fabian Grünbichler [Thu, 21 Dec 2017 11:47:49 +0000 (12:47 +0100)]
bump version to 5.1-41

6 years agopveupdate - always run check for available updates
Dietmar Maurer [Thu, 21 Dec 2017 09:15:47 +0000 (10:15 +0100)]
pveupdate - always run check for available updates

6 years agoprevent double ticket api call
Dominik Csapak [Wed, 20 Dec 2017 13:01:20 +0000 (14:01 +0100)]
prevent double ticket api call

commit:
9d4aa0edbbbd42429d7f46eae72766eb6d87c78e

added the defaultButton property to the loginwindow, but we missed that
pressing enter in the passwordfield/userfield led to a double ticket
api call.

while it did not any harm, remove it, so that we only have a single
ticket api call

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Fixes: 9d4aa0edbbbd ("add defaultButton to loginWindow")
6 years agouse activate instead of show
Dominik Csapak [Wed, 20 Dec 2017 13:01:19 +0000 (14:01 +0100)]
use activate instead of show

we changed this almost everywhere in the transition from extjs4 to
extjs6, but we forgot one

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoSet Console Button icon style at definition time
Emmanuel Kasper [Tue, 19 Dec 2017 13:10:01 +0000 (14:10 +0100)]
Set Console Button icon style at definition time

This will allow the 'Upgrade' button to get an icon too.

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agoUse the new xterm.js icon with the corresponding Menu Item
Emmanuel Kasper [Tue, 19 Dec 2017 13:10:00 +0000 (14:10 +0100)]
Use the new xterm.js icon with the corresponding Menu Item

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agoAdd new icon for xtermjs consoles, based on xtermjs logo
Emmanuel Kasper [Tue, 19 Dec 2017 13:09:59 +0000 (14:09 +0100)]
Add new icon for xtermjs consoles, based on xtermjs logo

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agojslint: remove trailing comma after last objects property
Emmanuel Kasper [Tue, 19 Dec 2017 13:09:58 +0000 (14:09 +0100)]
jslint: remove trailing comma after last objects property

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agocleanup
Wolfgang Bumiller [Thu, 14 Dec 2017 08:07:00 +0000 (09:07 +0100)]
cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agobump version to 5.1-40
Wolfgang Bumiller [Wed, 13 Dec 2017 13:50:13 +0000 (14:50 +0100)]
bump version to 5.1-40

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoshow storage usage in tree
Dominik Csapak [Tue, 12 Dec 2017 12:25:16 +0000 (13:25 +0100)]
show storage usage in tree

this adds a little usage indicator in the tree for all storage definitions,
so that one can easily see how much of a storage is used

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoremove (near)full status for storages
Dominik Csapak [Tue, 12 Dec 2017 12:25:15 +0000 (13:25 +0100)]
remove (near)full status for storages

since this is not a good default, we do not want the user
to have to configure those limits for each storage, and
a warning triangle was confusing for multiple users,
we remove this again

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoSend an email when a replication job fails.
Wolfgang Link [Thu, 7 Dec 2017 11:07:00 +0000 (12:07 +0100)]
Send an email when a replication job fails.

A email notification will be send for each job when the job fails.
This message will only send when an error occurs and the fail count is on 1.

Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoIndentation cleanup.
Wolfgang Link [Thu, 7 Dec 2017 11:06:58 +0000 (12:06 +0100)]
Indentation cleanup.

Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agoadd xtermjs to consolebutton
Dominik Csapak [Mon, 11 Dec 2017 13:55:30 +0000 (14:55 +0100)]
add xtermjs to consolebutton

also rework the button.
move most things in the static configuration

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd xtermjs flag to VNCConsole iframe
Dominik Csapak [Mon, 11 Dec 2017 13:55:29 +0000 (14:55 +0100)]
add xtermjs flag to VNCConsole iframe

so that we can open an xtermjs iframe instead of novnc

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd new xtermjs viewer window to Utils
Dominik Csapak [Mon, 11 Dec 2017 13:55:28 +0000 (14:55 +0100)]
add new xtermjs viewer window to Utils

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd xtermjs to pveproxy dirs
Dominik Csapak [Mon, 11 Dec 2017 13:55:27 +0000 (14:55 +0100)]
add xtermjs to pveproxy dirs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd termproxy api call for nodes
Dominik Csapak [Mon, 11 Dec 2017 13:55:26 +0000 (14:55 +0100)]
add termproxy api call for nodes

and add dependency for pve-xtermjs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoapi: nodes/subscription: implement reasonable access rights
Thomas Lamprecht [Thu, 30 Nov 2017 07:20:34 +0000 (08:20 +0100)]
api: nodes/subscription: implement reasonable access rights

Allow users which have Sys.Audit on a specific node to get the
subscription status and those with Sys.Modify to set and check
(update) it.

This mirrors the required permissions from other node specific
actions, e.g., APT (package management).

We always showed the Subscription Panel and all its elements in the
WebUI, so no need for change there.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobump version to 5.1-39
Fabian Grünbichler [Mon, 11 Dec 2017 14:35:22 +0000 (15:35 +0100)]
bump version to 5.1-39

6 years agoFix #1589: auth_handler: raise exception on init_request error
Thomas Lamprecht [Thu, 7 Dec 2017 13:00:36 +0000 (14:00 +0100)]
Fix #1589: auth_handler: raise exception on init_request error

cfs_* methods cann now die (rightfully so) when the IPCC endpoint is
not connected, or another grave IPCC error arised.

As we did not catch those problems in the RPCEnvironments
init_request method, which loads the user config, this got
propagated to the anyevents auth_handler call in its
unshift_read_header method where then all errors where processed in
the same way => with an unauthorized response logging an logged in
user out.

So catch this error and raise an internal server errror exception
instead. Anyevent needs some minor modifiaction in a separate patch
to handle PVE::Exceptions correctly, so this is the partial fix for
bug #1589

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoupdate catalan translation
Dietmar Maurer [Tue, 5 Dec 2017 12:02:28 +0000 (13:02 +0100)]
update catalan translation

6 years agoAdd a proper confirmation message when we detach an used disk
Emmanuel Kasper [Thu, 30 Nov 2017 16:34:07 +0000 (17:34 +0100)]
Add a proper confirmation message when we detach an used disk

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agoFix #1526: Use 'detach' instead of 'remove' when the disk is used
Emmanuel Kasper [Thu, 30 Nov 2017 16:34:06 +0000 (17:34 +0100)]
Fix #1526: Use 'detach' instead of 'remove' when the disk is used

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agoFix JSLint type confusion warnings
Emmanuel Kasper [Thu, 30 Nov 2017 16:34:05 +0000 (17:34 +0100)]
Fix JSLint type confusion warnings

The type confusion warnings arose from string and integer concatenation,
and object properties of the name which were alternatively set with
strings and integers.

Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
6 years agoadd versioned dependency on libpve-storage-perl
Fabian Grünbichler [Thu, 30 Nov 2017 10:40:03 +0000 (11:40 +0100)]
add versioned dependency on libpve-storage-perl

for API changes needed for new DiskSelector

6 years agobump version to 5.1-38
Fabian Grünbichler [Thu, 30 Nov 2017 10:36:30 +0000 (11:36 +0100)]
bump version to 5.1-38