16848: Avoids showing API errors when the extra token creation fails.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 17 Feb 2021 18:48:32 +0000 (15:48 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 17 Feb 2021 18:48:32 +0000 (15:48 -0300)
commit1d7fbccb64462c349ea223df3ac02817ba60bfe1
treec121853235b48f55e0daa52320b5cd3240412513
parent5620b9c4236bab9e9c98b6a4e955498823de4136
16848: Avoids showing API errors when the extra token creation fails.

If the cluster's config API.TokenLifetime isn't zero, creating new tokens
isn't allowed. From wb2's side, there's no way to know in advance if this
will be allowed so this commit avoids showing the error on app's bootup
and shows a warning message on the UI when the user tries to do it manually.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>
src/models/api-client-authorization.ts
src/services/common-service/common-service.ts
src/store/auth/auth-action.ts
src/store/users/users-actions.ts
src/views-components/token-dialog/token-dialog.tsx