X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ba71587fc2058276b9b70c342b990aa6508690a9..d9ee24d0f78a21603e2276d0d3142d4db40a831b:/src/views/link-account-panel/link-account-panel-root.tsx diff --git a/src/views/link-account-panel/link-account-panel-root.tsx b/src/views/link-account-panel/link-account-panel-root.tsx index 98d19acedf..2438f04e4f 100644 --- a/src/views/link-account-panel/link-account-panel-root.tsx +++ b/src/views/link-account-panel/link-account-panel-root.tsx @@ -26,7 +26,8 @@ type CssRules = 'root'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { width: '100%', - overflow: 'auto' + overflow: 'auto', + display: 'flex' } }); @@ -77,7 +78,7 @@ export const LinkAccountPanelRoot = withStyles(styles)( {isProcessing && Loading user info. Please wait. - + @@ -90,27 +91,27 @@ export const LinkAccountPanelRoot = withStyles(styles)( You can link Arvados accounts. After linking, either login will take you to the same account. - + + + {hasRemoteHosts && selectedCluster && You can also link {displayUser(targetUser, false)} with an account from a remote cluster. - + Please select the cluster that hosts the account you want to link with: - @@ -132,24 +133,24 @@ export const LinkAccountPanelRoot = withStyles(styles)( <> This a remote account. You can link a local Arvados account to this one. After linking, you can access the local account's data by logging into the - {localCluster} cluster as user {targetUser.email} + {localCluster} cluster as user {targetUser.email} from {targetUser.uuid.substr(0, 5)}. - - - - - : Please visit cluster - {loginCluster} - to perform account linking. + + + + + : Please visit cluster + {loginCluster} + to perform account linking. ) - : - This an inactive remote account. An administrator must activate your - account before you can proceed. After your accounts is activated, - you can link a local Arvados account hosted by the {localCluster} - cluster to this one. - } + : + This an inactive remote account. An administrator must activate your + account before you can proceed. After your accounts is activated, + you can link a local Arvados account hosted by the {localCluster} + cluster to this one. + } } } @@ -158,36 +159,36 @@ export const LinkAccountPanelRoot = withStyles(styles)( {status === LinkAccountPanelStatus.LINKING && Clicking 'Link accounts' will link {displayUser(userToLink, true, !isLocalUser(targetUser.uuid, localCluster))} to {displayUser(targetUser, true, !isLocalUser(targetUser.uuid, localCluster))}. - + {(isLocalUser(targetUser.uuid, localCluster)) && After linking, logging in as {displayUser(userToLink)} will log you into the same account as {displayUser(targetUser)}. - } + } Any object owned by {displayUser(userToLink)} will be transfered to {displayUser(targetUser)}. - + {!isLocalUser(targetUser.uuid, localCluster) && You can access {userToLink.email} data by logging into {localCluster} with the {targetUser.email} account. - } + } } {error === LinkAccountPanelError.NON_ADMIN && Cannot link admin account {displayUser(userToLink)} to non-admin account {displayUser(targetUser)}. - } + } {error === LinkAccountPanelError.SAME_USER && Cannot link {displayUser(targetUser)} to the same account. - } + } {error === LinkAccountPanelError.INACTIVE && Cannot link account {displayUser(userToLink)} to inactive account {displayUser(targetUser)}. - } + } + + }