diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2019-01-30 13:54:26 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2019-02-11 09:11:41 +0100 |
commit | 308d6a85e6489a3ed739e205f9de6bc5050b09f5 (patch) | |
tree | 3b8b25aac91472a222ff7bba5f38016b09b44bf2 /server/sonar-web/src/main/js/apps/tutorials | |
parent | 5e68732f4883ffb937f42245072e83265cd09cce (diff) | |
download | sonarqube-308d6a85e6489a3ed739e205f9de6bc5050b09f5.tar.gz sonarqube-308d6a85e6489a3ed739e205f9de6bc5050b09f5.zip |
Merge pull request #1178 from SonarSource/feature/jl/add_dates_to_users_and_user_tokens
Add dates to users and user tokens
Diffstat (limited to 'server/sonar-web/src/main/js/apps/tutorials')
-rw-r--r-- | server/sonar-web/src/main/js/apps/tutorials/components/TokenStep.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/tutorials/components/TokenStep.tsx b/server/sonar-web/src/main/js/apps/tutorials/components/TokenStep.tsx index 0eb8a9714c6..6c92ab9c35b 100644 --- a/server/sonar-web/src/main/js/apps/tutorials/components/TokenStep.tsx +++ b/server/sonar-web/src/main/js/apps/tutorials/components/TokenStep.tsx @@ -22,10 +22,10 @@ import { FormattedMessage } from 'react-intl'; import { Link } from 'react-router'; import * as classNames from 'classnames'; import Step from './Step'; -import { getTokens, generateToken, revokeToken, UserToken } from '../../../api/user-tokens'; import AlertErrorIcon from '../../../components/icons-components/AlertErrorIcon'; import AlertSuccessIcon from '../../../components/icons-components/AlertSuccessIcon'; import { DeleteButton, SubmitButton, Button } from '../../../components/ui/buttons'; +import { getTokens, generateToken, revokeToken } from '../../../api/user-tokens'; import { translate } from '../../../helpers/l10n'; interface Props { @@ -44,7 +44,7 @@ interface State { selection: string; tokenName?: string; token?: string; - tokens?: UserToken[]; + tokens?: T.UserToken[]; } export default class TokenStep extends React.PureComponent<Props, State> { @@ -85,7 +85,7 @@ export default class TokenStep extends React.PureComponent<Props, State> { getToken = () => this.state.selection === 'generate' ? this.state.token : this.state.existingToken; - getUniqueTokenName = (tokens: UserToken[]) => { + getUniqueTokenName = (tokens: T.UserToken[]) => { const { initialTokenName = '' } = this.props; const hasToken = (name: string) => tokens.find(token => token.name === name) !== undefined; |