Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
fbf2ad18
Commit
fbf2ad18
authored
Mar 28, 2012
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug #55: add Migrate and Stop to context menu
parent
ca39b13b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
63 additions
and
5 deletions
+63
-5
changelog.Debian
debian/changelog.Debian
+6
-0
defines.mk
defines.mk
+1
-1
Makefile
www/images/Makefile
+2
-0
forward.png
www/images/forward.png
+0
-0
gtk-stop.png
www/images/gtk-stop.png
+0
-0
ResourceGrid.js
www/manager/grid/ResourceGrid.js
+2
-4
CmdMenu.js
www/manager/openvz/CmdMenu.js
+26
-0
CmdMenu.js
www/manager/qemu/CmdMenu.js
+26
-0
No files found.
debian/changelog.Debian
View file @
fbf2ad18
pve-manager (2.0-51) unstable; urgency=low
* fix bug #55: add Migrate and Stop to context menu
-- Proxmox Support Team <support@proxmox.com> Wed, 28 Mar 2012 13:12:19 +0200
pve-manager (2.0-50) unstable; urgency=low
* kvm network: allow to configure VLAN Id on the GUI
...
...
defines.mk
View file @
fbf2ad18
...
...
@@ -2,7 +2,7 @@ RELEASE=2.0
VERSION=2.0
PACKAGE=pve-manager
PACKAGERELEASE=5
0
PACKAGERELEASE=5
1
BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5
...
...
www/images/Makefile
View file @
fbf2ad18
...
...
@@ -7,6 +7,8 @@ all:
GNOME_IMAGES
=
\
start.png
\
stop.png
\
gtk-stop.png
\
forward.png
\
display.png
\
keyboard.png
\
cdrom.png
\
...
...
www/images/forward.png
0 → 100644
View file @
fbf2ad18
641 Bytes
www/images/gtk-stop.png
0 → 100644
View file @
fbf2ad18
664 Bytes
www/manager/grid/ResourceGrid.js
View file @
fbf2ad18
...
...
@@ -197,13 +197,11 @@ Ext.define('PVE.grid.ResourceGrid', {
if
(
record
.
data
.
type
===
'
qemu
'
)
{
menu
=
Ext
.
create
(
'
PVE.qemu.CmdMenu
'
,
{
vmid
:
record
.
data
.
vmid
,
nodename
:
record
.
data
.
node
pveSelNode
:
record
});
}
else
if
(
record
.
data
.
type
===
'
openvz
'
)
{
menu
=
Ext
.
create
(
'
PVE.openvz.CmdMenu
'
,
{
vmid
:
record
.
data
.
vmid
,
nodename
:
record
.
data
.
node
pveSelNode
:
record
});
}
else
{
return
;
...
...
www/manager/openvz/CmdMenu.js
View file @
fbf2ad18
...
...
@@ -37,6 +37,18 @@ Ext.define('PVE.openvz.CmdMenu', {
vm_command
(
'
start
'
);
}
},
{
text
:
gettext
(
'
Migrate
'
),
icon
:
'
/pve2/images/forward.png
'
,
handler
:
function
()
{
var
win
=
Ext
.
create
(
'
PVE.window.Migrate
'
,
{
vmtype
:
'
openvz
'
,
nodename
:
nodename
,
vmid
:
vmid
});
win
.
show
();
}
},
{
text
:
gettext
(
'
Shutdown
'
),
icon
:
'
/pve2/images/stop.png
'
,
...
...
@@ -51,6 +63,20 @@ Ext.define('PVE.openvz.CmdMenu', {
});
}
},
{
text
:
gettext
(
'
Stop
'
),
icon
:
'
/pve2/images/gtk-stop.png
'
,
handler
:
function
()
{
var
msg
=
Ext
.
String
.
format
(
gettext
(
"
Do you really want to stop VM {0}?
"
),
vmid
);
Ext
.
Msg
.
confirm
(
gettext
(
'
Confirm
'
),
msg
,
function
(
btn
)
{
if
(
btn
!==
'
yes
'
)
{
return
;
}
vm_command
(
"
stop
"
);
});
}
},
{
text
:
gettext
(
'
Console
'
),
icon
:
'
/pve2/images/display.png
'
,
...
...
www/manager/qemu/CmdMenu.js
View file @
fbf2ad18
...
...
@@ -37,6 +37,18 @@ Ext.define('PVE.qemu.CmdMenu', {
vm_command
(
'
start
'
);
}
},
{
text
:
gettext
(
'
Migrate
'
),
icon
:
'
/pve2/images/forward.png
'
,
handler
:
function
()
{
var
win
=
Ext
.
create
(
'
PVE.window.Migrate
'
,
{
vmtype
:
'
qemu
'
,
nodename
:
nodename
,
vmid
:
vmid
});
win
.
show
();
}
},
{
text
:
gettext
(
'
Shutdown
'
),
icon
:
'
/pve2/images/stop.png
'
,
...
...
@@ -51,6 +63,20 @@ Ext.define('PVE.qemu.CmdMenu', {
});
}
},
{
text
:
gettext
(
'
Stop
'
),
icon
:
'
/pve2/images/gtk-stop.png
'
,
handler
:
function
()
{
var
msg
=
Ext
.
String
.
format
(
gettext
(
"
Do you really want to stop VM {0}?
"
),
vmid
);
Ext
.
Msg
.
confirm
(
gettext
(
'
Confirm
'
),
msg
,
function
(
btn
)
{
if
(
btn
!==
'
yes
'
)
{
return
;
}
vm_command
(
"
stop
"
,
{
timeout
:
30
});
});
}
},
{
text
:
gettext
(
'
Console
'
),
icon
:
'
/pve2/images/display.png
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment