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:
Max Peintner
2022-07-29 09:14:45 +00:00
committed by GitHub
co-authored by Livio Spring
parent 9ed972f308
commit 5b284f8c9b
22 changed files with 358 additions and 159 deletions
+13 -9
View File
@@ -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);
}
}