Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

FIX (storages): Fix storage edit in playground

Rostislav Dugind4acdf282663
diff --git a/frontend/src/features/storages/ui/StorageComponent.tsx b/frontend/src/features/storages/ui/StorageComponent.tsx
index 2ab10ab1..8f6d8a54 100644
--- a/frontend/src/features/storages/ui/StorageComponent.tsx
+++ b/frontend/src/features/storages/ui/StorageComponent.tsx
@@ -227,23 +227,22 @@ export const StorageComponent = ({
</div>
)}
- {!storage.isSystem ||
- (user.role === UserRole.ADMIN && (
- <div className="mt-5 flex items-center font-bold">
- <div>Storage settings</div>
-
- {!isEditSettings && isCanManageStorages ? (
- <div
- className="ml-2 h-4 w-4 cursor-pointer"
- onClick={() => startEdit('settings')}
- >
- <img src="/icons/pen-gray.svg" />
- </div>
- ) : (
- <div />
- )}
- </div>
- ))}
+ {(!storage.isSystem || user.role === UserRole.ADMIN) && (
+ <div className="mt-5 flex items-center font-bold">
+ <div>Storage settings</div>
+
+ {!isEditSettings && isCanManageStorages ? (
+ <div
+ className="ml-2 h-4 w-4 cursor-pointer"
+ onClick={() => startEdit('settings')}
+ >
+ <img src="/icons/pen-gray.svg" />
+ </div>
+ ) : (
+ <div />
+ )}
+ </div>
+ )}
<div className="mt-1 text-sm">
{isEditSettings && isCanManageStorages ? (