16848: Makes 'Open as S3 bucket' dialog use the extra api token if available.
[arvados-workbench2.git] / 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,