mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-26 14:28:46 +00:00
fix(console-v2): settings permission restriction, u2f naming, asset error handling (#3658)
* fix permission on nav * restrict settings access * fido table * u2f i18n, permission * factor, image fallback Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
co-authored by
Livio Amstutz
parent
62c4a4d08d
commit
40d7dba574
@@ -93,6 +93,7 @@ const REQUESTMAP = {
|
||||
styleUrls: ['./login-texts.component.scss'],
|
||||
})
|
||||
export class LoginTextsComponent implements OnInit, OnDestroy {
|
||||
public loading: boolean = false;
|
||||
public currentPolicyChangeDate!: Timestamp.AsObject | undefined;
|
||||
public newerPolicyChangeDate!: Timestamp.AsObject | undefined;
|
||||
|
||||
@@ -208,6 +209,7 @@ export class LoginTextsComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
public async loadData(): Promise<any> {
|
||||
this.loading = true;
|
||||
const reqDefaultInit = REQUESTMAP[this.serviceType].getDefault;
|
||||
reqDefaultInit.setLanguage(this.locale);
|
||||
this.getDefaultInitMessageTextMap$ = from(this.getDefaultValues(reqDefaultInit)).pipe(map((m) => m[this.currentSubMap]));
|
||||
@@ -215,12 +217,14 @@ export class LoginTextsComponent implements OnInit, OnDestroy {
|
||||
const reqCustomInit = REQUESTMAP[this.serviceType].get.setLanguage(this.locale);
|
||||
return this.getCurrentValues(reqCustomInit)
|
||||
.then((policy) => {
|
||||
this.loading = false;
|
||||
if (policy) {
|
||||
this.totalCustomPolicy = policy;
|
||||
this.getCustomInitMessageTextMap$.next(policy[this.currentSubMap]);
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
this.loading = false;
|
||||
this.toast.showError(error);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user