From fecd197bf270ecd554a1db18bd5f264f7aac4245 Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Wed, 15 Mar 2023 15:40:35 +0100 Subject: [PATCH] fix: open dialogs (#5451) --- .../auth-user-detail/edit-dialog/edit-dialog.component.ts | 4 ---- internal/api/ui/login/static/i18n/de.yaml | 1 + internal/api/ui/login/static/i18n/en.yaml | 1 + internal/api/ui/login/static/i18n/fr.yaml | 1 + internal/api/ui/login/static/i18n/it.yaml | 1 + internal/api/ui/login/static/i18n/pl.yaml | 1 + internal/api/ui/login/static/i18n/zh.yaml | 1 + 7 files changed, 6 insertions(+), 4 deletions(-) diff --git a/console/src/app/pages/users/user-detail/auth-user-detail/edit-dialog/edit-dialog.component.ts b/console/src/app/pages/users/user-detail/auth-user-detail/edit-dialog/edit-dialog.component.ts index edb0e6afe6..6b20ad86de 100644 --- a/console/src/app/pages/users/user-detail/auth-user-detail/edit-dialog/edit-dialog.component.ts +++ b/console/src/app/pages/users/user-detail/auth-user-detail/edit-dialog/edit-dialog.component.ts @@ -1,11 +1,9 @@ -import { KeyValuePipe } from '@angular/common'; import { Component, Inject, OnInit } from '@angular/core'; import { FormGroup, UntypedFormControl, UntypedFormGroup } from '@angular/forms'; import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, } from '@angular/material/legacy-dialog'; -import { TranslateService } from '@ngx-translate/core'; import { requiredValidator } from 'src/app/modules/form-field/validators/validators'; import { CountryCallingCodesService, CountryPhoneCode } from 'src/app/services/country-calling-codes.service'; import { formatPhone } from 'src/app/utils/formatPhone'; @@ -33,8 +31,6 @@ export class EditDialogComponent implements OnInit { public dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: any, private countryCallingCodesService: CountryCallingCodesService, - private translateSvc: TranslateService, - private kvPipe: KeyValuePipe, ) { if (data.type === EditDialogType.PHONE) { this.isPhone = true; diff --git a/internal/api/ui/login/static/i18n/de.yaml b/internal/api/ui/login/static/i18n/de.yaml index 29935a0fd6..52a7f720ab 100644 --- a/internal/api/ui/login/static/i18n/de.yaml +++ b/internal/api/ui/login/static/i18n/de.yaml @@ -320,6 +320,7 @@ Errors: MissingParameters: Benötigte Parameter fehlen User: NotFound: Benutzer konnte nicht gefunden werden + AlreadyExists: Benutzer existiert bereits Inactive: Benutzer ist inaktiv NotFoundOnOrg: Benutzer konnte in der gewünschten Organisation nicht gefunden werden NotAllowedOrg: Benutzer gehört nicht der benötigten Organisation an diff --git a/internal/api/ui/login/static/i18n/en.yaml b/internal/api/ui/login/static/i18n/en.yaml index bf98dc288a..9d822fad87 100644 --- a/internal/api/ui/login/static/i18n/en.yaml +++ b/internal/api/ui/login/static/i18n/en.yaml @@ -320,6 +320,7 @@ Errors: MissingParameters: Required parameters missing User: NotFound: User could not be found + AlreadyExists: User already exists Inactive: User is inactive NotFoundOnOrg: User could not be found on chosen organisation NotAllowedOrg: User is no member of the required organisation diff --git a/internal/api/ui/login/static/i18n/fr.yaml b/internal/api/ui/login/static/i18n/fr.yaml index dfa35f983c..15c8028478 100644 --- a/internal/api/ui/login/static/i18n/fr.yaml +++ b/internal/api/ui/login/static/i18n/fr.yaml @@ -320,6 +320,7 @@ Errors: MissingParameters: Paramètres requis manquants User: NotFound: L'utilisateur n'a pas pu être trouvé + AlreadyExists: L'utilisateur existe déjà Inactive: L'utilisateur est inactif NotFoundOnOrg: L'utilisateur n'a pas été trouvé dans l'organisation choisie NotAllowedOrg: L'utilisateur n'est pas membre de l'organisation requise diff --git a/internal/api/ui/login/static/i18n/it.yaml b/internal/api/ui/login/static/i18n/it.yaml index 264b0a4af6..b607c33e15 100644 --- a/internal/api/ui/login/static/i18n/it.yaml +++ b/internal/api/ui/login/static/i18n/it.yaml @@ -320,6 +320,7 @@ Errors: MissingParameters: Mancano i parametri richiesti User: NotFound: L'utente non è stato trovato + AlreadyExists: L'utente già esistente Inactive: L'utente è inattivo NotFoundOnOrg: L'utente non è stato trovato nell'organizzazione scelta NotAllowedOrg: L'utente non è membro dell'organizzazione richiesta diff --git a/internal/api/ui/login/static/i18n/pl.yaml b/internal/api/ui/login/static/i18n/pl.yaml index 87376bd850..5de5a2a163 100644 --- a/internal/api/ui/login/static/i18n/pl.yaml +++ b/internal/api/ui/login/static/i18n/pl.yaml @@ -320,6 +320,7 @@ Errors: MissingParameters: Brakujące wymagane parametry User: NotFound: Nie znaleziono użytkownika + AlreadyExists: Użytkownik już istnieje Inactive: Użytkownik jest nieaktywny NotFoundOnOrg: Nie znaleziono użytkownika w wybranej organizacji NotAllowedOrg: Użytkownik nie jest członkiem wymaganej organizacji diff --git a/internal/api/ui/login/static/i18n/zh.yaml b/internal/api/ui/login/static/i18n/zh.yaml index 5d82ea0e91..4670e64c9f 100644 --- a/internal/api/ui/login/static/i18n/zh.yaml +++ b/internal/api/ui/login/static/i18n/zh.yaml @@ -320,6 +320,7 @@ Errors: MissingParameters: 缺少必需的参数 User: NotFound: 找不到用户 + AlreadyExists: 用户已存在 Inactive: 用户处于停用状态 NotFoundOnOrg: 在所选组织中找不到用户 NotAllowedOrg: 用户不是所需组织的成员