Skip to content

Commit

Permalink
GUI S3 Objects lifecycle (#2759): hide app buttons (vsi, miew, hcs, s…
Browse files Browse the repository at this point in the history
…tatic preview) for archived and not restored files
  • Loading branch information
AleksandrGorodetskii committed Oct 31, 2022
1 parent 895936f commit 67733f4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions client/src/components/pipelines/browser/data-storage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,16 +517,20 @@ export default class DataStorage extends React.Component {
selectable: !i.deleteMarker,
miew: !i.deleteMarker &&
i.type.toLowerCase() === 'file' &&
i.path.toLowerCase().endsWith('.pdb'),
vsi: !i.deleteMarker && i.type.toLowerCase() === 'file' && (
i.path.toLowerCase().endsWith('.pdb') &&
(!archived || restored),
vsi: !i.deleteMarker && i.type.toLowerCase() === 'file' &&
(!archived || restored) && (
i.path.toLowerCase().endsWith('.vsi') ||
i.path.toLowerCase().endsWith('.mrxs')
),
hcs: !i.deleteMarker &&
i.type.toLowerCase() === 'file' &&
fastCheckHCSPreviewAvailable({path: i.path, storageId}),
fastCheckHCSPreviewAvailable({path: i.path, storageId}) &&
(!archived || restored),
documentPreview: !i.deleteMarker &&
documentPreviewAvailable(i),
documentPreviewAvailable(i) &&
(!archived || restored),
archived,
restored
};
Expand Down

0 comments on commit 67733f4

Please sign in to comment.