mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-19 03:35:12 +00:00
feat: Use V2 API's in Console (#9312)
# Which Problems Are Solved Solves #8976 # Additional Changes I have done some intensive refactorings and we are using the new @zitadel/client package for GRPC access. # Additional Context - Closes #8976 --------- Co-authored-by: Max Peintner <[email protected]>
This commit is contained in:
@@ -19,16 +19,21 @@ export class SignedoutComponent {
|
||||
|
||||
const lP = localStorage.getItem(LABELPOLICY_LOCALSTORAGE_KEY);
|
||||
|
||||
if (lP) {
|
||||
const parsed = JSON.parse(lP);
|
||||
localStorage.removeItem(LABELPOLICY_LOCALSTORAGE_KEY);
|
||||
if (parsed) {
|
||||
this.labelpolicy = parsed;
|
||||
authService.labelpolicy.next(parsed);
|
||||
authService.labelPolicyLoading$.next(false);
|
||||
}
|
||||
} else {
|
||||
if (!lP) {
|
||||
authService.labelPolicyLoading$.next(false);
|
||||
return;
|
||||
}
|
||||
|
||||
const parsed = JSON.parse(lP);
|
||||
localStorage.removeItem(LABELPOLICY_LOCALSTORAGE_KEY);
|
||||
|
||||
if (!parsed) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.labelpolicy = parsed;
|
||||
// todo: figure this one out
|
||||
// authService.labelpolicy.next(parsed);
|
||||
authService.labelPolicyLoading$.next(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user