@@ -64,11 +64,11 @@ const DiscoveryListView: React.FunctionComponent<Props> = (props: Props) => {
64
64
( props . config . features . exportToWorkspace . enableDownloadManifest || props . config . features . exportToWorkspace . enableDownloadZip )
65
65
? 'download'
66
66
: '' ,
67
- 'open in workspace'
67
+ 'open in workspace' ,
68
68
]
69
69
. filter ( Boolean )
70
70
. join ( ' or ' )
71
- } `}
71
+ } `}
72
72
overlayStyle = { { maxWidth : '150px' } }
73
73
>
74
74
{ node }
@@ -79,7 +79,7 @@ const DiscoveryListView: React.FunctionComponent<Props> = (props: Props) => {
79
79
props . onResourcesSelected ( selectedRows ) ;
80
80
} ,
81
81
getCheckboxProps : ( record ) => {
82
- let disabled ;
82
+ let disabled : boolean = false ;
83
83
// if auth is enabled, disable checkbox if user doesn't have access
84
84
if ( props . config . features . authorization . enabled ) {
85
85
disabled = ( record [ props . accessibleFieldName ] !== AccessLevel . ACCESSIBLE ) && ( record [ props . accessibleFieldName ] !== AccessLevel . MIXED ) ;
@@ -102,7 +102,11 @@ const DiscoveryListView: React.FunctionComponent<Props> = (props: Props) => {
102
102
if ( ! record [ manifestFieldName ] || record [ manifestFieldName ] . length === 0 ) {
103
103
// put some hard-coded field names here, so that only checkboxes in proper table rows will be enabled
104
104
// TODO: this can be addressed by the cart feature
105
- if ( enableExportFullMetadata && ( ! record . external_file_metadata || record . external_file_metadata . length === 0 ) ) {
105
+ // if export full metadata is not enabled, disable the checkbox if no manifest
106
+ if ( ! enableExportFullMetadata ) {
107
+ disabled = true ;
108
+ // otherwise, check if there is external file metadata
109
+ } else if ( ! record . external_file_metadata || record . external_file_metadata . length === 0 ) {
106
110
disabled = true ;
107
111
}
108
112
}
0 commit comments