Commit Graph

9 Commits

Author SHA1 Message Date
Emmanuel Kasper
9875a997c8 closes #195 : hide disallowed commands in tree
When basic capabilities are missing, don't display the corresponding actions in
the tree menu.

Note that we *hide* the corresponding actions, instead of disabling by greying
out the menu command. Disabling here does not make sense, since a low privilege
user has no way to reenable the menu commands by himself.

This is mainly a usability improvement, as the real capabilities test is done in
the backend.
2016-08-01 17:16:18 +02:00
Dominik Csapak
efbc9f5d7e cleanup of contextmenus
change the order of the contextmenu items to
group functions, also introducing separators

like this:

***
power options
***
moving options
***
console
***

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-11 13:03:19 +02:00
Dominik Csapak
52af3f0de4 correct qemu cmdMenu
start button should be disabled when suspended

use 'file' icon instead of 'sticky-note'
to be consistent with tree icons

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-11 11:51:05 +02:00
Dominik Csapak
9bd6cd80de fix trailing whitespaces
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-05 12:00:52 +02:00
Dominik Csapak
ce8dac510e make contextmenus status-sensitive
for example, allow starting from contextmenu
only if vm/ct is stopped, etc.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-04-05 12:00:44 +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
Dietmar Maurer
16152937f8 reduce translation overhead 2016-04-04 16:59:52 +02:00
Emmanuel Kasper
d59ed79b5d Do not turn the strings CT and VM into separate localizable strings
According to the PO files, translators keep 'CT' and 'VM' unchanged
2016-03-29 09:21:14 +02:00
Dietmar Maurer
dc56cd139b copy qemu/CmdMenu.js from manager to manager6 2016-03-16 09:12:21 +01:00