mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-21 20:38:47 +00:00
feat(console): v2 feature cleanup, fix styling issues, instance naming (#3530)
* new console * move npm ci to angular build * rel path for assets * local grpc copy * login policy, rm clear views, features rel path * login_hint param * edit default color values * remove features, zitadel-tier, contact styles * html formatter * rm feature restrictions, fix theming issues * instance naming * statehandler * rm class * rm class * update footer links * statehandler * stroked color Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
co-authored by
Livio Amstutz
parent
f9e79ef8fe
commit
41e60b3d8a
@@ -24,7 +24,6 @@ export interface CnslOverlay {
|
||||
requirements?: {
|
||||
media?: string;
|
||||
permission?: string[];
|
||||
feature?: string[];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -83,10 +82,9 @@ export class OverlayWorkflowService implements OnDestroy {
|
||||
return zip([
|
||||
this.meetsMediaRequirements(overlay),
|
||||
this.meetsPermissionRequirements(overlay),
|
||||
this.meetsFeatureRequirements(overlay),
|
||||
] as Observable<boolean>[]).pipe(
|
||||
switchMap(([media, permission, feature]) => {
|
||||
return of(media && permission && feature);
|
||||
switchMap(([media, permission]) => {
|
||||
return of(media && permission);
|
||||
}),
|
||||
);
|
||||
}
|
||||
@@ -114,15 +112,6 @@ export class OverlayWorkflowService implements OnDestroy {
|
||||
}
|
||||
}
|
||||
|
||||
public meetsFeatureRequirements(overlay: CnslOverlay): Observable<boolean> {
|
||||
const regexArray = overlay.requirements?.feature;
|
||||
if (regexArray && regexArray.length) {
|
||||
return this.authService.canUseFeature(regexArray);
|
||||
} else {
|
||||
return of(true);
|
||||
}
|
||||
}
|
||||
|
||||
public reset(): void {
|
||||
this.currentWorkflow$.next(null);
|
||||
if (this.callback) {
|
||||
|
||||
@@ -21,7 +21,7 @@ export const IntroWorkflowOverlays: CnslOverlay[] = [
|
||||
content: {
|
||||
number: 2,
|
||||
count: 4,
|
||||
i18nText: 'OVERLAYS.SYSTEM.TEXT',
|
||||
i18nText: 'OVERLAYS.INSTANCE.TEXT',
|
||||
},
|
||||
requirements: {
|
||||
media: '(min-width: 600px)',
|
||||
|
||||
Reference in New Issue
Block a user