"lodash.mergewith": "4.6.2",
"lodash.template": "4.5.0",
"mem": "4.0.0",
+ "moment": "2.29.1",
"parse-duration": "0.4.4",
"prop-types": "15.7.2",
"query-string": "6.9.0",
dispatch(progressIndicatorActions.START_WORKING(WORKBENCH_LOADING_SCREEN));
try {
await dispatch<any>(saveApiToken(token));
- } catch (e) {}
- dispatch(progressIndicatorActions.STOP_WORKING(WORKBENCH_LOADING_SCREEN));
+ } finally {
+ dispatch(progressIndicatorActions.STOP_WORKING(WORKBENCH_LOADING_SCREEN));
+ }
}
};
import { snackbarActions, SnackbarKind } from '~/store/snackbar/snackbar-actions';
import { getNewExtraToken } from '~/store/auth/auth-action';
import { DetailsAttributeComponent } from '~/components/details-attribute/details-attribute';
+import * as moment from 'moment';
type CssRules = 'link' | 'paper' | 'button' | 'actionButton' | 'codeBlock';
render() {
const { classes, open, closeDialog, ...data } = this.props;
const tokenExpiration = data.tokenExpiration
- ? data.tokenExpiration.toLocaleString()
+ ? `${data.tokenExpiration.toLocaleString()} (${moment(data.tokenExpiration).fromNow()})`
: `This token does not have an expiration date`;
return <Dialog
dependencies:
minimist "^1.2.5"
-moment@^2.27.0:
+moment@2.29.1, moment@^2.27.0:
version "2.29.1"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3"
integrity sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==