mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 00:52:09 +00:00
PIT: hide restore button for last commit
This commit is contained in:
@@ -13,6 +13,7 @@ export type CommitHistoryItem = {
|
||||
envId: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
isLatest: boolean;
|
||||
};
|
||||
|
||||
export type TFolderCommitChanges = {
|
||||
|
||||
+10
-8
@@ -291,14 +291,16 @@ export const CommitDetailsTab = ({
|
||||
className="animate-in fade-in-50 zoom-in-95 min-w-[200px] p-1"
|
||||
style={{ marginTop: "0" }}
|
||||
>
|
||||
<DropdownMenuItem
|
||||
className="h-10 w-full cursor-pointer px-3 py-2 text-sm transition-colors hover:bg-mineshaft-700"
|
||||
onClick={() => goToRollbackPreview()}
|
||||
>
|
||||
<div className="flex w-full items-center justify-start">
|
||||
<span>Restore entire folder</span>
|
||||
</div>
|
||||
</DropdownMenuItem>
|
||||
{!parsedCommitDetails.changes.isLatest && (
|
||||
<DropdownMenuItem
|
||||
className="h-10 w-full cursor-pointer px-3 py-2 text-sm transition-colors hover:bg-mineshaft-700"
|
||||
onClick={() => goToRollbackPreview()}
|
||||
>
|
||||
<div className="flex w-full items-center justify-start">
|
||||
<span>Restore entire folder</span>
|
||||
</div>
|
||||
</DropdownMenuItem>
|
||||
)}
|
||||
|
||||
<DropdownMenuItem
|
||||
className="h-10 w-full cursor-pointer px-3 py-2 text-sm transition-colors hover:bg-mineshaft-700"
|
||||
|
||||
Reference in New Issue
Block a user