X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/de2380dae954f5874badf948e9658aacd6c8e6f9..c11055f2d6ce8385088bc221eab1175e31777ec0:/src/views-components/current-token-dialog/current-token-dialog.tsx diff --git a/src/views-components/current-token-dialog/current-token-dialog.tsx b/src/views-components/current-token-dialog/current-token-dialog.tsx index fe5f850c..fca9f059 100644 --- a/src/views-components/current-token-dialog/current-token-dialog.tsx +++ b/src/views-components/current-token-dialog/current-token-dialog.tsx @@ -4,7 +4,7 @@ import * as React from 'react'; import { Dialog, DialogActions, DialogTitle, DialogContent, WithStyles, withStyles, StyleRulesCallback, Button, Typography, Paper } from '@material-ui/core'; -import { ArvadosTheme } from '../../common/custom-theme'; +import { ArvadosTheme } from '~/common/custom-theme'; type CssRules = 'link' | 'paper' | 'button'; @@ -27,7 +27,7 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ }); interface CurrentTokenDataProps { - currentToken?: string; + currentToken?: string; open: boolean; } @@ -37,9 +37,9 @@ interface CurrentTokenActionProps { type CurrentTokenProps = CurrentTokenDataProps & CurrentTokenActionProps & WithStyles; -export const CurrentTokenDialog = withStyles(styles)( +export const CurrentTokenDialog = withStyles(styles)( class extends React.Component { - + render() { const { classes, open, handleClose, currentToken } = this.props; return ( @@ -47,7 +47,7 @@ export const CurrentTokenDialog = withStyles(styles)( Current Token - The Arvados API token is a secret key that enables the Arvados SDKs to access Arvados with the proper permissions. + The Arvados API token is a secret key that enables the Arvados SDKs to access Arvados with the proper permissions. For more information see @@ -56,13 +56,13 @@ export const CurrentTokenDialog = withStyles(styles)( - + Paste the following lines at a shell prompt to set up the necessary environment for Arvados SDKs to authenticate to your klingenc account. - HISTIGNORE=$HISTIGNORE:'export ARVADOS_API_TOKEN=*' + HISTIGNORE=$HISTIGNORE:'export ARVADOS_API_TOKEN=*' export ARVADOS_API_TOKEN={currentToken} @@ -75,8 +75,8 @@ export const CurrentTokenDialog = withStyles(styles)( - Arvados - virtual machines + Arvados + virtual machines do this for you automatically. This setup is needed only when you use the API remotely (e.g., from your own workstation). @@ -87,4 +87,4 @@ export const CurrentTokenDialog = withStyles(styles)( ); } } -); \ No newline at end of file +);