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
a454cbd7
Commit
a454cbd7
authored
Sep 13, 2012
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
confirm rollback
parent
dde9f8aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
SnapshotTree.js
www/manager/qemu/SnapshotTree.js
+12
-3
No files found.
www/manager/qemu/SnapshotTree.js
View file @
a454cbd7
...
...
@@ -92,11 +92,11 @@ Ext.define('PVE.qemu.SnapshotTree', {
var
valid_snapshot
=
function
(
record
)
{
return
record
&&
record
.
data
&&
record
.
data
.
name
&&
record
.
data
.
name
!==
'
__
current
'
;
record
.
data
.
name
!==
'
current
'
;
};
var
valid_snapshot_rollback
=
function
(
record
)
{
return
record
&&
record
.
data
&&
record
.
data
.
name
&&
record
.
data
.
name
!==
'
__
current
'
&&
!
record
.
data
.
snapstate
;
record
.
data
.
name
!==
'
current
'
&&
!
record
.
data
.
snapstate
;
};
var
run_editor
=
function
()
{
...
...
@@ -127,6 +127,11 @@ Ext.define('PVE.qemu.SnapshotTree', {
disabled
:
true
,
selModel
:
sm
,
enableFn
:
valid_snapshot_rollback
,
confirmMsg
:
function
(
rec
)
{
var
msg
=
Ext
.
String
.
format
(
gettext
(
'
Are you sure you want to rollback to snapshot {0}
'
),
"
'
"
+
rec
.
data
.
name
+
"
'
"
);
return
msg
;
},
handler
:
function
(
btn
,
event
)
{
var
rec
=
sm
.
getSelection
()[
0
];
if
(
!
rec
)
{
...
...
@@ -152,7 +157,11 @@ Ext.define('PVE.qemu.SnapshotTree', {
text
:
gettext
(
'
Remove
'
),
disabled
:
true
,
selModel
:
sm
,
confirmMsg
:
gettext
(
'
Are you sure you want to remove this entry
'
),
confirmMsg
:
function
(
rec
)
{
var
msg
=
Ext
.
String
.
format
(
gettext
(
'
Are you sure you want to remove entry {0}
'
),
"
'
"
+
rec
.
data
.
name
+
"
'
"
);
return
msg
;
},
enableFn
:
valid_snapshot
,
handler
:
function
(
btn
,
event
)
{
var
rec
=
sm
.
getSelection
()[
0
];
...
...
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