feat(console): set email verified on org creation, disable svg upload, password page optimizations (#4149)

* feat: set email verified on org creation

* catch svg files and throw error

* password changes

* passwordpage

* rm log

* it

* fr

* localhost env

* Update fr.json

Co-authored-by: Fabi <[email protected]>
Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
Max Peintner
2022-08-26 07:34:44 +00:00
committed by GitHub
co-authored by Fabi Livio Spring
parent e39d82c031
commit cbb5e90bac
17 changed files with 201 additions and 127 deletions
+8 -1
View File
@@ -33,7 +33,7 @@ export class ToastService {
}
}
public showError(error: any | string, isGrpc: boolean = true): void {
public showError(error: any | string, isGrpc: boolean = true, i18nKey: boolean = false): void {
if (isGrpc) {
const { message, code, metadata } = error;
if (code !== 16) {
@@ -44,6 +44,13 @@ export class ToastService {
this.showMessage(decodeURI(message), value, false);
});
}
} else if (i18nKey) {
this.translate
.get(error)
.pipe(take(1))
.subscribe((value) => {
this.showMessage(value, '', false);
});
} else {
this.showMessage(error as string, '', false);
}