Skip to content

Commit 31f2499

Browse files
committed
fix: Always display download button for public resources
1 parent ef14f5f commit 31f2499

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pages/objects/[id].vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ const objectInfo = await fetchResource(resourceId)
4141
4242
function isDownloadable(): boolean {
4343
if (objectInfo) {
44+
if (objectInfo.data_class === v2DataClass.DATA_CLASS_PUBLIC) {
45+
return true
46+
}
47+
4448
return objectInfo.variant === v2ResourceVariant.RESOURCE_VARIANT_OBJECT &&
4549
objectInfo.object_status === modelsv2Status.STATUS_AVAILABLE &&
4650
objectInfo.permission !== v2PermissionLevel.PERMISSION_LEVEL_UNSPECIFIED &&

0 commit comments

Comments
 (0)