mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-16 09:21:30 +00:00

* fix idp table, settings reset warn dialog, fix i18n interceptor, i18n * fix label policy on org change * fallback * fix preview button styles * footer, login-policy null check * org create btn alignment * show error with toast * error toast
57 lines
1.4 KiB
TypeScript
57 lines
1.4 KiB
TypeScript
import { Component } from '@angular/core';
|
|
import { ActivatedRoute, Params } from '@angular/router';
|
|
import { take } from 'rxjs';
|
|
import { PolicyComponentServiceType } from 'src/app/modules/policies/policy-component-types.enum';
|
|
import { SidenavSetting } from 'src/app/modules/sidenav/sidenav.component';
|
|
import { Breadcrumb, BreadcrumbService, BreadcrumbType } from 'src/app/services/breadcrumb.service';
|
|
|
|
import {
|
|
BRANDING,
|
|
COMPLEXITY,
|
|
DOMAIN,
|
|
IDP,
|
|
LOCKOUT,
|
|
LOGIN,
|
|
LOGINTEXTS,
|
|
MESSAGETEXTS,
|
|
PRIVACYPOLICY,
|
|
} from '../../modules/settings-list/settings';
|
|
|
|
@Component({
|
|
selector: 'cnsl-org-settings',
|
|
templateUrl: './org-settings.component.html',
|
|
styleUrls: ['./org-settings.component.scss'],
|
|
})
|
|
export class OrgSettingsComponent {
|
|
public id: string = '';
|
|
public PolicyComponentServiceType: any = PolicyComponentServiceType;
|
|
public settingsList: SidenavSetting[] = [
|
|
LOGIN,
|
|
IDP,
|
|
COMPLEXITY,
|
|
LOCKOUT,
|
|
DOMAIN,
|
|
BRANDING,
|
|
MESSAGETEXTS,
|
|
LOGINTEXTS,
|
|
PRIVACYPOLICY,
|
|
];
|
|
|
|
constructor(breadcrumbService: BreadcrumbService, activatedRoute: ActivatedRoute) {
|
|
const breadcrumbs = [
|
|
new Breadcrumb({
|
|
type: BreadcrumbType.ORG,
|
|
routerLink: ['/org'],
|
|
}),
|
|
];
|
|
breadcrumbService.setBreadcrumb(breadcrumbs);
|
|
|
|
activatedRoute.queryParams.pipe(take(1)).subscribe((params: Params) => {
|
|
const { id } = params;
|
|
if (id) {
|
|
this.id = id;
|
|
}
|
|
});
|
|
}
|
|
}
|