diff options
Diffstat (limited to 'packages/bank-ui/src/pages/admin/CreateNewAccount.tsx')
-rw-r--r-- | packages/bank-ui/src/pages/admin/CreateNewAccount.tsx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/bank-ui/src/pages/admin/CreateNewAccount.tsx b/packages/bank-ui/src/pages/admin/CreateNewAccount.tsx index 38119735e..f5755e2cd 100644 --- a/packages/bank-ui/src/pages/admin/CreateNewAccount.tsx +++ b/packages/bank-ui/src/pages/admin/CreateNewAccount.tsx @@ -14,6 +14,7 @@ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ import { + AbsoluteTime, HttpStatusCode, TalerCorebankApi, TalerErrorCode, @@ -69,6 +70,7 @@ export function CreateNewAccount({ title: i18n.str`Server replied that phone or email is invalid`, description: resp.detail.hint as TranslatedString, debug: resp.detail, + when: AbsoluteTime.now(), }); case HttpStatusCode.Unauthorized: return notify({ @@ -76,6 +78,7 @@ export function CreateNewAccount({ title: i18n.str`The rights to perform the operation are not sufficient`, description: resp.detail.hint as TranslatedString, debug: resp.detail, + when: AbsoluteTime.now(), }); case TalerErrorCode.BANK_REGISTER_USERNAME_REUSE: return notify({ @@ -83,6 +86,7 @@ export function CreateNewAccount({ title: i18n.str`Account username is already taken`, description: resp.detail.hint as TranslatedString, debug: resp.detail, + when: AbsoluteTime.now(), }); case TalerErrorCode.BANK_REGISTER_PAYTO_URI_REUSE: return notify({ @@ -90,6 +94,7 @@ export function CreateNewAccount({ title: i18n.str`Account id is already taken`, description: resp.detail.hint as TranslatedString, debug: resp.detail, + when: AbsoluteTime.now(), }); case TalerErrorCode.BANK_UNALLOWED_DEBIT: return notify({ @@ -97,6 +102,7 @@ export function CreateNewAccount({ title: i18n.str`Bank ran out of bonus credit.`, description: resp.detail.hint as TranslatedString, debug: resp.detail, + when: AbsoluteTime.now(), }); case TalerErrorCode.BANK_RESERVED_USERNAME_CONFLICT: return notify({ @@ -104,6 +110,7 @@ export function CreateNewAccount({ title: i18n.str`Account username can't be used because is reserved`, description: resp.detail.hint as TranslatedString, debug: resp.detail, + when: AbsoluteTime.now(), }); case TalerErrorCode.BANK_NON_ADMIN_PATCH_DEBT_LIMIT: return notify({ @@ -111,6 +118,7 @@ export function CreateNewAccount({ title: i18n.str`Only admin is allow to set debt limit.`, description: resp.detail.hint as TranslatedString, debug: resp.detail, + when: AbsoluteTime.now(), }); case TalerErrorCode.BANK_MISSING_TAN_INFO: return notify({ @@ -118,6 +126,7 @@ export function CreateNewAccount({ title: i18n.str`No information for the selected authentication channel.`, description: resp.detail.hint as TranslatedString, debug: resp.detail, + when: AbsoluteTime.now(), }); case TalerErrorCode.BANK_TAN_CHANNEL_NOT_SUPPORTED: return notify({ @@ -125,6 +134,7 @@ export function CreateNewAccount({ title: i18n.str`Authentication channel is not supported.`, description: resp.detail.hint as TranslatedString, debug: resp.detail, + when: AbsoluteTime.now(), }); case TalerErrorCode.BANK_NON_ADMIN_SET_TAN_CHANNEL: return notify({ @@ -132,6 +142,7 @@ export function CreateNewAccount({ title: i18n.str`Only admin can create accounts with second factor authentication.`, description: resp.detail.hint as TranslatedString, debug: resp.detail, + when: AbsoluteTime.now(), }); default: assertUnreachable(resp); |