From: Lucas Di Pentima Date: Fri, 5 Mar 2021 15:32:27 +0000 (-0300) Subject: 16848: Adds a legend for non-expiring tokens on the get token dialog. X-Git-Tag: 2.1.2.1~10^2~7 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/6b5e94cfb15a88d33aba5e7c192cfbe6aec9ac8d 16848: Adds a legend for non-expiring tokens on the get token dialog. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- diff --git a/src/views-components/token-dialog/token-dialog.tsx b/src/views-components/token-dialog/token-dialog.tsx index 60ef360c..ba3d1942 100644 --- a/src/views-components/token-dialog/token-dialog.tsx +++ b/src/views-components/token-dialog/token-dialog.tsx @@ -111,10 +111,12 @@ unset ARVADOS_API_HOST_INSECURE` Paste the following lines at a shell prompt to set up the necessary environment for Arvados SDKs to authenticate to your account. + { data.tokenExpiration - ? Expires at: {data.tokenExpiration.toLocaleString()} - : null + ? `Expires at: ${data.tokenExpiration.toLocaleString()}` + : `This token does not have an expiration date` } + this.onCopy('Token copied to clipboard')}>