16848: Always use wb2 token when LoginCluster is set and isn't the home cluster
[arvados-workbench2.git] / src / views-components / token-dialog / token-dialog.tsx
index 063bb2a5ef99db6433a85e8474c34be0ff89387e..5bbcaf57db5f6aeb3517c6a6ae95c5d6f58d3188 100644 (file)
@@ -121,7 +121,7 @@ unset ARVADOS_API_HOST_INSECURE`
                         COPY TO CLIPBOARD
                     </Button>
                 </CopyToClipboard>
-                <Button
+                { this.props.canCreateNewTokens && <Button
                     onClick={() => this.onGetNewToken()}
                     color="primary"
                     size="small"
@@ -129,7 +129,7 @@ unset ARVADOS_API_HOST_INSECURE`
                     className={classes.actionButton}
                 >
                     GET NEW TOKEN
-                </Button>
+                </Button> }
                 <Typography >
                     Arvados
                             <a href='http://doc.arvados.org/user/reference/api-tokens.html' target='blank' className={classes.link}>virtual machines</a>