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,7 +1115,11 @@ namespace XenAdmin.TabPages
|
|||||||
{
|
{
|
||||||
VM snap = (VM)item.Tag;
|
VM snap = (VM)item.Tag;
|
||||||
if (snap != null && snap.is_a_snapshot)
|
if (snap != null && snap.is_a_snapshot)
|
||||||
snapshots.Add(snap);
|
{
|
||||||
|
if(!(snap.is_snapshot_from_vmpp || snap.is_vmss_snapshot) || toolStripMenuItemScheduledSnapshots.Checked)
|
||||||
|
snapshots.Add(snap);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return snapshots;
|
return snapshots;
|
||||||
}
|
}
|
||||||
@ -1129,7 +1133,10 @@ namespace XenAdmin.TabPages
|
|||||||
{
|
{
|
||||||
VM snap = (VM)row.Tag;
|
VM snap = (VM)row.Tag;
|
||||||
if (snap != null && snap.is_a_snapshot)
|
if (snap != null && snap.is_a_snapshot)
|
||||||
snapshots.Add(snap);
|
{
|
||||||
|
if (!(snap.is_snapshot_from_vmpp || snap.is_vmss_snapshot) || toolStripMenuItemScheduledSnapshots.Checked)
|
||||||
|
snapshots.Add(snap);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return snapshots;
|
return snapshots;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user