20829: Add canWrite and canManage to group and API response dialog
[arvados-workbench2.git] / src / store / advanced-tab / advanced-tab.tsx
index a495e89cad16f001399e3081d9801e91533b69c2..6333711783ccd00b6f83560a8c575a827b2a1bbb 100644 (file)
@@ -467,7 +467,9 @@ const collectionApiResponse = (apiResponse: CollectionResource): JSX.Element =>
 };
 
 const groupRequestApiResponse = (apiResponse: ProjectResource): JSX.Element => {
-    const { uuid, ownerUuid, createdAt, modifiedAt, modifiedByClientUuid, modifiedByUserUuid, name, description, groupClass, trashAt, isTrashed, deleteAt, properties, writableBy } = apiResponse;
+    const { uuid, ownerUuid, createdAt, modifiedAt, modifiedByClientUuid, modifiedByUserUuid, name,
+        description, groupClass, trashAt, isTrashed, deleteAt, properties, writableBy,
+        canWrite, canManage } = apiResponse;
     const response = `
 "uuid": "${uuid}",
 "owner_uuid": "${ownerUuid}",
@@ -482,6 +484,8 @@ const groupRequestApiResponse = (apiResponse: ProjectResource): JSX.Element => {
 "is_trashed": ${stringify(isTrashed)},
 "delete_at": ${stringify(deleteAt)},
 "properties": ${stringifyObject(properties)},
+"can_write": ${stringify(canWrite)},
+"can_manage": ${stringify(canManage)},
 "writable_by": ${stringifyObject(writableBy)}`;
 
     return <span style={{ marginLeft: '-15px' }}>{'{'} {response} {'\n'} <span style={{ marginLeft: '-15px' }}>{'}'}</span></span>;