@@ -197,7 +197,7 @@ export class CollectionHeader extends React.Component<IProps, IState> {
197
197
198
198
const latestVersion = collection . collection_version . pulp_created ;
199
199
200
- const { display_signatures, can_upload_signatures } =
200
+ const { display_signatures, can_upload_signatures, display_repositories } =
201
201
this . context . featureFlags ;
202
202
203
203
const signedString = ( ) => {
@@ -216,7 +216,6 @@ export class CollectionHeader extends React.Component<IProps, IState> {
216
216
: ''
217
217
} `;
218
218
} ;
219
-
220
219
const { collection_version, namespace_metadata : namespace } = collection ;
221
220
const { name : collectionName , version } = collection_version ;
222
221
@@ -287,13 +286,15 @@ export class CollectionHeader extends React.Component<IProps, IState> {
287
286
>
288
287
{ t `Upload new version` }
289
288
</ DropdownItem > ,
290
- < DropdownItem
291
- key = 'copy-collection-version-to-repository-dropdown'
292
- onClick = { ( ) => this . copyToRepository ( collection ) }
293
- data-cy = 'copy-collection-version-to-repository-dropdown'
294
- >
295
- { t `Copy version ${ version } to repositories` }
296
- </ DropdownItem > ,
289
+ display_repositories && (
290
+ < DropdownItem
291
+ key = 'copy-collection-version-to-repository-dropdown'
292
+ onClick = { ( ) => this . copyToRepository ( collection ) }
293
+ data-cy = 'copy-collection-version-to-repository-dropdown'
294
+ >
295
+ { t `Copy version ${ version } to repositories` }
296
+ </ DropdownItem >
297
+ ) ,
297
298
] . filter ( Boolean ) ;
298
299
299
300
const issueUrl =
0 commit comments