16848: Moves the "get new token" button up.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Tue, 9 Mar 2021 17:58:38 +0000 (14:58 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Tue, 9 Mar 2021 17:58:38 +0000 (14:58 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>

src/views-components/token-dialog/token-dialog.tsx

index 77e4f168c63da28d75fc83e38c52be53c77ffbf6..1421f67b10a32076f4e3b28f444c690095f7a2e5 100644 (file)
@@ -151,6 +151,15 @@ unset ARVADOS_API_HOST_INSECURE`
                     }
                     </Typography>
                 </Typography>
+                { this.props.canCreateNewTokens && <Button
+                    onClick={() => this.onGetNewToken()}
+                    color="primary"
+                    size="small"
+                    variant="contained"
+                    className={classes.actionButton}
+                >
+                    GET NEW TOKEN
+                </Button> }
                 <Typography paragraph={true}>
                     Paste the following lines at a shell prompt to set up the necessary environment for Arvados SDKs to authenticate to your account.
                 </Typography>
@@ -165,15 +174,6 @@ unset ARVADOS_API_HOST_INSECURE`
                         COPY TO CLIPBOARD
                     </Button>
                 </CopyToClipboard>
-                { this.props.canCreateNewTokens && <Button
-                    onClick={() => this.onGetNewToken()}
-                    color="primary"
-                    size="small"
-                    variant="contained"
-                    className={classes.actionButton}
-                >
-                    GET NEW TOKEN
-                </Button> }
                 <Typography >
                     Arvados
                             <a href='http://doc.arvados.org/user/reference/api-tokens.html' target='blank' className={classes.link}>virtual machines</a>