mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-13 01:25:11 +00:00
fix(console): horizontal toggle for users, projects, improve UI/UX (#4047)
* fix(console): horizontal toggle for users, projects * improve input contrast * toggles, profile UI fix * lint * fix safari styles * fix button placement redirects * style lint Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
co-authored by
Livio Spring
parent
9ed972f308
commit
5b284f8c9b
@@ -33,15 +33,19 @@ export class ToastService {
|
||||
}
|
||||
}
|
||||
|
||||
public showError(grpcError: any): void {
|
||||
const { message, code, metadata } = grpcError;
|
||||
if (code !== 16) {
|
||||
this.translate
|
||||
.get('ACTIONS.CLOSE')
|
||||
.pipe(take(1))
|
||||
.subscribe((value) => {
|
||||
this.showMessage(decodeURI(message), value, false);
|
||||
});
|
||||
public showError(error: any | string, isGrpc: boolean = true): void {
|
||||
if (isGrpc) {
|
||||
const { message, code, metadata } = error;
|
||||
if (code !== 16) {
|
||||
this.translate
|
||||
.get('ACTIONS.CLOSE')
|
||||
.pipe(take(1))
|
||||
.subscribe((value) => {
|
||||
this.showMessage(decodeURI(message), value, false);
|
||||
});
|
||||
}
|
||||
} else {
|
||||
this.showMessage(error as string, '', false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user