* Fix bug.

This commit is contained in:
zhaoke
2023-02-15 18:27:46 +08:00
parent 8fa5b6fc6f
commit f334ac0f47
+1 -1
View File
@@ -46,7 +46,7 @@
$deleteAttr .= ($snapshot->status == 'restoring' or $snapshot->status == 'creating') ? ' class="btn disabled"' : 'class="btn"';
$isDefalut = $snapshot->name == 'defaultSnap' && $snapshot->createdBy == 'system';
if($isDefalut) $editAttr = $restoreAttr = $deleteAttr = 'class="btn disabled"';
if($isDefalut) $editAttr = $deleteAttr = 'class="btn disabled"';
$name = $snapshot->localName ? $snapshot->localName : $snapshot->name;
$title = $snapshot->name;
if($snapshot->name == 'defaultSnap' && $snapshot->createdBy == 'system')