We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 924c38f commit 7b43779Copy full SHA for 7b43779
portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/ListObjects.tsx
@@ -359,6 +359,8 @@ const ListObjects = () => {
359
useEffect(() => {
360
if (selectedObjects.length === 1) {
361
const objectName = selectedObjects[0];
362
+ const isPrefix = objectName.endsWith("/");
363
+
364
let objectType: AllowedPreviews = previewObjectType(metaData, objectName);
365
366
if (objectType !== "none" && canDownload) {
@@ -367,7 +369,7 @@ const ListObjects = () => {
367
369
setCanPreviewFile(false);
368
370
}
371
- if (objectName.endsWith("/") || canDownload) {
372
+ if (canDownload && !isPrefix) {
373
setCanShareFile(true);
374
} else {
375
setCanShareFile(false);
0 commit comments