<DateFormatter date={token.createdAt} long={true} />
</td>
<td className="thin nowrap text-right">
- <DeferredSpinner loading={loading}>
- <i className="deferred-spinner-placeholder" />
- </DeferredSpinner>
{deleteConfirmation === 'modal' ? (
<ConfirmButton
confirmButtonText={translate('users.tokens.revoke_token')}
onConfirm={this.handleRevoke}>
{({ onClick }) => (
<Button
- className="spacer-left button-red input-small"
+ className="button-red input-small"
disabled={loading}
onClick={onClick}
title={translate('users.tokens.revoke_token')}>
</ConfirmButton>
) : (
<Button
- className="button-red input-small spacer-left"
+ className="button-red input-small"
disabled={loading}
onClick={this.handleClick}>
+ <DeferredSpinner className="little-spacer-right" loading={loading} />
{showConfirmation ? translate('users.tokens.sure') : translate('users.tokens.revoke')}
</Button>
)}
<td
className="thin nowrap text-right"
>
- <DeferredSpinner
- loading={false}
- >
- <i
- className="deferred-spinner-placeholder"
- />
- </DeferredSpinner>
<Button
- className="button-red input-small spacer-left"
+ className="button-red input-small"
disabled={false}
onClick={[Function]}
>
+ <DeferredSpinner
+ className="little-spacer-right"
+ loading={false}
+ />
users.tokens.revoke
</Button>
</td>
<td
className="thin nowrap text-right"
>
- <DeferredSpinner
- loading={false}
- >
- <i
- className="deferred-spinner-placeholder"
- />
- </DeferredSpinner>
<ConfirmButton
confirmButtonText="users.tokens.revoke_token"
isDestructive={true}
exports[`should revoke the token using inline confirmation 1`] = `
<Button
- className="button-red input-small spacer-left"
+ className="button-red input-small"
disabled={false}
onClick={[Function]}
>
+ <DeferredSpinner
+ className="little-spacer-right"
+ loading={false}
+ />
users.tokens.revoke
</Button>
`;
exports[`should revoke the token using inline confirmation 2`] = `
<Button
- className="button-red input-small spacer-left"
+ className="button-red input-small"
disabled={false}
onClick={[Function]}
>
+ <DeferredSpinner
+ className="little-spacer-right"
+ loading={false}
+ />
users.tokens.sure
</Button>
`;