From 311d93efad983f04befff6a902f1324176e67bca Mon Sep 17 00:00:00 2001 From: Marie Verdonck Date: Tue, 7 Jul 2020 16:17:48 +0200 Subject: [PATCH] 71712: Left out the filter for authorized & metadata-export script exists to show export metadata option for now, until #635 is fixed See https://github.com/DSpace/dspace-angular/issues/635 If uncommented now: in prod mode: button only available after refresh after login; in dev mode: button not available in any way because authorisation request header is not added to script request --- src/app/+admin/admin-sidebar/admin-sidebar.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/+admin/admin-sidebar/admin-sidebar.component.ts b/src/app/+admin/admin-sidebar/admin-sidebar.component.ts index 58058f055e..c6853ebc0a 100644 --- a/src/app/+admin/admin-sidebar/admin-sidebar.component.ts +++ b/src/app/+admin/admin-sidebar/admin-sidebar.component.ts @@ -380,7 +380,8 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit { this.authorizationService.isAuthorized(FeatureID.AdministratorOf), this.scriptDataService.scriptWithNameExistsAndCanExecute(METADATA_EXPORT_SCRIPT_NAME) ).pipe( - filter(([authorized, metadataExportScriptExists]: boolean[]) => authorized && metadataExportScriptExists), + // TODO uncomment when #635 (https://github.com/DSpace/dspace-angular/issues/635) is fixed; otherwise even in production mode, the metadata export button is only available after a refresh (and not in dev mode) + // filter(([authorized, metadataExportScriptExists]: boolean[]) => authorized && metadataExportScriptExists), take(1) ).subscribe(() => { this.menuService.addSection(this.menuID, {