16848: Makes 'Open as S3 bucket' dialog use the extra api token if available.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Tue, 16 Feb 2021 23:11:07 +0000 (20:11 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Tue, 16 Feb 2021 23:11:07 +0000 (20:11 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>

src/store/collections/collection-info-actions.ts

index 49fe54f67ea6ccacee79135178ea23b912f1607d..b904da705cbf601e45589bbeaa0f09d8267da375 100644 (file)
@@ -26,7 +26,7 @@ export const openWebDavS3InfoDialog = (uuid: string, activeTab?: number) =>
             id: COLLECTION_WEBDAV_S3_DIALOG_NAME,
             data: {
                 title: 'Access Collection using WebDAV or S3',
-                token: getState().auth.apiToken,
+                token: getState().auth.extraApiToken || getState().auth.apiToken,
                 downloadUrl: getState().auth.config.keepWebServiceUrl,
                 collectionsUrl: getState().auth.config.keepWebInlineServiceUrl,
                 localCluster: getState().auth.localCluster,