mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-12-23 00:46:03 +01:00
Merge pull request #1103 from geosharath/VMSS
CA-213500: Revert To, Actions and Delete buttons are enabled even if there is no manual snapshot.
This commit is contained in:
commit
504492d741
@ -1115,8 +1115,12 @@ namespace XenAdmin.TabPages
|
||||
{
|
||||
VM snap = (VM)item.Tag;
|
||||
if (snap != null && snap.is_a_snapshot)
|
||||
{
|
||||
if(!(snap.is_snapshot_from_vmpp || snap.is_vmss_snapshot) || toolStripMenuItemScheduledSnapshots.Checked)
|
||||
snapshots.Add(snap);
|
||||
}
|
||||
|
||||
}
|
||||
return snapshots;
|
||||
}
|
||||
}
|
||||
@ -1129,8 +1133,11 @@ namespace XenAdmin.TabPages
|
||||
{
|
||||
VM snap = (VM)row.Tag;
|
||||
if (snap != null && snap.is_a_snapshot)
|
||||
{
|
||||
if (!(snap.is_snapshot_from_vmpp || snap.is_vmss_snapshot) || toolStripMenuItemScheduledSnapshots.Checked)
|
||||
snapshots.Add(snap);
|
||||
}
|
||||
}
|
||||
return snapshots;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user