Commit Graph

32 Commits

Author SHA1 Message Date
Matthias Urban
8ed196a408 VM.Snapshot.Rollback privilege added
VM.Snapshot.Rollback privilege added

Signed-off-by: Matthias Urban <matthias.urban@pure-systems.com>
2017-09-22 09:24:44 +02:00
Dominik Csapak
6ecdb34077 hide not usable buttons for qemu
this hides not usuable buttons for qemu
e.g. start/shutdown for templates
migrate for non-cluster setups

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-09-01 09:59:48 +02:00
Dominik Csapak
d5a7996b13 fix reselection on vm/ct migrate in gui
there were a number of problems in how we reselected vms when they
migrated and selected:

we relied on the data in the configpanel to be static, but since
pveselnode is a reference, it actually changes when the resourcestore
changes
also, handling the reselection as a response to the statusstore failure
is very inconsistent, because we know exactly when a vm moves node in
the tree

this patch removes the whole configpanel vm migration code,
and lets the tree handle it
for this, we have to check if we have to reselect the entry,
deselect it manually and after the treeupdate reselect it

also in the right click selection check we have to check if it is
already selected, else the next selection will get canceled

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-23 13:01:12 +02:00
Dominik Csapak
1d0293b8c0 show resume button when qmpstatus is 'suspended'
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-22 12:24:03 +02:00
Dominik Csapak
cb6df20c2e add replication grid to lxc/qemu/node
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-14 07:34:48 +02:00
Dominik Csapak
d6dab970ba add a 'convert to template' in the vm action bar
this was only available on right clicking a vm, now it is also available
in the action bar

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-04-14 15:18:53 +02:00
Dominik Csapak
f2fa05d13d move qemu reset button into shutdown menu
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-04-14 15:18:53 +02:00
Emmanuel Kasper
c8fc7a4eee Add a clone button in the VM toolbar
Up to now the Migrate function had a first class button in the toolbar,
but the Clone function didn't.
With this button the toolbar still fit correctly in a smaller
1280 pixel wide display.
2017-02-22 13:54:36 +01:00
Dominik Csapak
ba93a9c665 move onlineHelp into classes from definition
this patch moves the onlineHelp ids into the javascript classes, instead
of defining them where we use the classes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-02 17:13:12 +01:00
Dietmar Maurer
c8802a60b7 use auto-generated block IDs to reference online docu. 2016-10-13 11:26:06 +02:00
Dominik Csapak
3c724630b3 add onlineHelp to qemu
and its options

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-09-13 16:42:06 +02:00
Dominik Csapak
816b62b0aa fix #1104: add missing /firewall in url
with the reorganizing of the tabs to
the treelist, we forgot to add /firewall to some
urls, making the url for source/destination invalid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-09-13 08:03:20 +02:00
Dominik Csapak
1939a0069e partially rever qemu gui structure
this restores the structure of the qemu options
and moves the console to the second position

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-09-01 11:43:59 +02:00
Dominik Csapak
c284be32bd reorganize qemu items
use new tree functionality of configpanel

move options,monitor,console under hardware (now system)
move firewall subpanels into tree

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-24 12:31:11 +02:00
Dominik Csapak
4a01bc8345 hide snapshot tab with qemu templates
since we cannot create templates with existing snapshots,
and we cannot take snapshots of templates, showing
the tab on templates makes no sense

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-01 16:46:41 +02:00
Dominik Csapak
22f2f9d6c0 jslint: remove trailing commas
before ECMA5 trailing commas in arrays and objects
are forbidden

in jslint this is an error and cannot be deactivated

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-29 17:06:34 +02:00
Dominik Csapak
d4333933e5 use font-awesome icons for action buttons and cmdmenu
this patch makes use of font-awesome for
lxc/qemu action buttons (start/shutdown etc.)
node actions buttons (restart/shutdown etc.)
and lxc/qemu cmdmenus

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-05 11:59:25 +02:00
Dominik Csapak
889c70833e use split button for shutdown/stop for vm/ct
uses the new split button for the shutdown action
to reduse the number of buttons, and reduce confusion

also make the stop button 'dangerous'
(shows just a different symbol on the confirm dialog)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-05 11:56:43 +02:00
Dietmar Maurer
16152937f8 reduce translation overhead 2016-04-04 16:59:52 +02:00
Dominik Csapak
394a99831d properly hide the resume button by default
the config 'visible' does not exist,
instead use 'hidden'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-01 13:23:08 +02:00
Dietmar Maurer
2a727273a2 simplify code 2016-03-30 09:37:47 +02:00
Emmanuel Kasper
4365549dfa disable console button for templates 2016-03-30 09:23:11 +02:00
Dietmar Maurer
bcecf28019 SafeDestroy.js: use modern ExtJS features
We now use the class config system, a View Model and a View Controller.
2016-03-30 09:07:32 +02:00
Emmanuel Kasper
32f469f383 requires manual entering VM id before enabling the delete Button for VMs
suggested by a user in https://bugzilla.proxmox.com/show_bug.cgi?id=360#c7
similar to the way github handles the deleting of a repository

fixes: #360
2016-03-21 10:45:49 +01:00
Dominik Csapak
c5ccc8d0b7 ext6migrate: enable some qemu tabs
enables:
Monitor, Backup, Snapshot, Console, Firewall, Permissions

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-18 16:09:58 +01:00
Emmanuel Kasper
45b473c68a Enable four first tabs of Qemu Panel 2016-03-17 10:45:33 +01:00
Emmanuel Kasper
6f68dcbedd Fix Qemu summary view:
* replace scrollable with autoScroll and move to prototype body
* use 'activate' to load store on F5
* do not set a height on the StatusView component: it hides some rows,
and the framework sets a good working default height
* replace deprecated 'rows' parameter in textareafield with
height in pixels
2016-03-17 10:44:10 +01:00
Dominik Csapak
540fdc8b1e formatting and trailing whitespaces fix
fix format of commit
f2a6ce6cf1
(space before 'load')

also fix trailing whitespaces in those files

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-15 16:31:02 +01:00
Dominik Csapak
f2a6ce6cf1 ext6migrate: fix store load race condition
when we click on a node/container/vm and quickly
click on something else, there might be a race condition,
where the store finished loading and we try to change
dom elements, which are not there anymore

so we change the store.on to me.mon, which
deletes the handler when the component is gone

in the logview panel we use API2Request, where
we cannot do this, so we check if the component
is destroyed manually

also we change this whenever we change a dom element
in a callback

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-14 17:16:37 +01:00
Emmanuel Kasper
a2f35eb2ea push column items individually
looks like ExtJS is not automatically flattening the array anymore
and items in a multidimensionnal array are not displayed with ExtJS6

lxc/Config.js is still commented because we haven't reached this part
in the upgrade, but fixing there too
2016-02-29 16:52:01 +01:00
Emmanuel Kasper
b70496d69d Comment out missing/broken JS classes so we can select nodes in the left ressource tree with ExtJS6 2016-01-26 10:53:44 +01:00
Dietmar Maurer
156095db99 copy qemu/Config.js from manager to manager5 2016-01-22 11:24:30 +01:00