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
72937a07
Commit
72937a07
authored
Jan 18, 2013
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display 'Resume' button when VM is 'paused'
parent
db05e682
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
4 deletions
+31
-4
changelog.Debian
debian/changelog.Debian
+6
-0
defines.mk
defines.mk
+1
-1
Config.js
www/manager/qemu/Config.js
+24
-3
No files found.
debian/changelog.Debian
View file @
72937a07
pve-manager (2.3-5) unstable; urgency=low
* Display 'Resume' button when VM is 'paused'
-- Proxmox Support Team <support@proxmox.com> Fri, 18 Jan 2013 06:23:06 +0100
pve-manager (2.3-4) unstable; urgency=low
* add balloon GUI (dynamic memory)
...
...
defines.mk
View file @
72937a07
...
...
@@ -2,7 +2,7 @@ RELEASE=2.3
VERSION=2.3
PACKAGE=pve-manager
PACKAGERELEASE=
4
PACKAGERELEASE=
5
BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5
...
...
www/manager/qemu/Config.js
View file @
72937a07
...
...
@@ -34,7 +34,16 @@ Ext.define('PVE.qemu.Config', {
});
};
var
startBtn
=
Ext
.
create
(
'
Ext.Button
'
,
{
var
resumeBtn
=
Ext
.
create
(
'
Ext.Button
'
,
{
text
:
gettext
(
'
Resume
'
),
disabled
:
!
caps
.
vms
[
'
VM.PowerMgmt
'
],
visible
:
false
,
handler
:
function
()
{
vm_command
(
'
resume
'
);
}
});
var
startBtn
=
Ext
.
create
(
'
Ext.Button
'
,
{
text
:
gettext
(
'
Start
'
),
disabled
:
!
caps
.
vms
[
'
VM.PowerMgmt
'
],
handler
:
function
()
{
...
...
@@ -114,7 +123,7 @@ Ext.define('PVE.qemu.Config', {
Ext
.
apply
(
me
,
{
title
:
Ext
.
String
.
format
(
gettext
(
"
Virtual Machine {0} on node {1}
"
),
descr
,
"
'
"
+
nodename
+
"
'
"
),
hstateid
:
'
kvmtab
'
,
tbar
:
[
startBtn
,
shutdownBtn
,
stopBtn
,
resetBtn
,
tbar
:
[
resumeBtn
,
startBtn
,
shutdownBtn
,
stopBtn
,
resetBtn
,
removeBtn
,
migrateBtn
,
consoleBtn
],
defaults
:
{
statusStore
:
me
.
statusStore
},
items
:
[
...
...
@@ -173,12 +182,24 @@ Ext.define('PVE.qemu.Config', {
me
.
statusStore
.
on
(
'
load
'
,
function
(
s
,
records
,
success
)
{
var
status
;
var
qmpstatus
;
if
(
!
success
)
{
me
.
workspace
.
checkVmMigration
(
me
.
pveSelNode
);
status
=
'
unknown
'
;
status
=
qmpstatus
=
'
unknown
'
;
}
else
{
var
rec
=
s
.
data
.
get
(
'
status
'
);
status
=
rec
?
rec
.
data
.
value
:
'
unknown
'
;
rec
=
s
.
data
.
get
(
'
qmpstatus
'
);
qmpstatus
=
rec
?
rec
.
data
.
value
:
'
unknown
'
;
}
if
(
qmpstatus
===
'
prelaunch
'
||
qmpstatus
===
'
paused
'
)
{
startBtn
.
setVisible
(
false
);
resumeBtn
.
setVisible
(
true
)
}
else
{
startBtn
.
setVisible
(
true
);
resumeBtn
.
setVisible
(
false
)
}
startBtn
.
setDisabled
(
!
caps
.
vms
[
'
VM.PowerMgmt
'
]
||
status
===
'
running
'
);
...
...
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