mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-07 19:57:40 +00:00
fix(console): dependencies, general settings spinner, open domain validation after creation, change org-create default owner (#4676)
* fix: general settings spinner, domain validation after add * chore(deps): bump @grpc/grpc-js from 1.7.1 to 1.7.3 in /console (#4667) Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.7.1 to 1.7.3. - [Release notes](https://github.com/grpc/grpc-node/releases) - [Commits](https://github.com/grpc/grpc-node/compare/v1.7.1...@grpc/grpc-js@1.7.3) --- updated-dependencies: - dependency-name: "@grpc/grpc-js" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ng * chore(deps-dev): bump @typescript-eslint/parser from 5.39.0 to 5.42.0 in /console (#4666) chore(deps-dev): bump @typescript-eslint/parser in /console Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.39.0 to 5.42.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.42.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * eslint * chore(deps): bump tslib from 2.4.0 to 2.4.1 in /console (#4662) Bumps [tslib](https://github.com/Microsoft/tslib) from 2.4.0 to 2.4.1. - [Release notes](https://github.com/Microsoft/tslib/releases) - [Commits](https://github.com/Microsoft/tslib/compare/2.4.0...2.4.1) --- updated-dependencies: - dependency-name: tslib dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * downgrade grpc-js * up warning * pack lock * change org create default Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
parent
e183fe668a
commit
6c01e6a55b
@ -85,7 +85,7 @@
|
|||||||
"budgets": [
|
"budgets": [
|
||||||
{
|
{
|
||||||
"type": "initial",
|
"type": "initial",
|
||||||
"maximumWarning": "5mb",
|
"maximumWarning": "6mb",
|
||||||
"maximumError": "6mb"
|
"maximumError": "6mb"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
7129
console/package-lock.json
generated
7129
console/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -12,18 +12,18 @@
|
|||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "^14.2.8",
|
"@angular/animations": "^14.2.9",
|
||||||
"@angular/cdk": "^14.2.6",
|
"@angular/cdk": "^14.2.3",
|
||||||
"@angular/common": "^14.2.8",
|
"@angular/common": "^14.2.9",
|
||||||
"@angular/compiler": "^14.2.8",
|
"@angular/compiler": "^14.2.9",
|
||||||
"@angular/core": "^14.2.8",
|
"@angular/core": "^14.2.9",
|
||||||
"@angular/forms": "^14.2.8",
|
"@angular/forms": "^14.2.9",
|
||||||
"@angular/material": "^14.2.6",
|
"@angular/material": "^14.2.3",
|
||||||
"@angular/material-moment-adapter": "^14.2.6",
|
"@angular/material-moment-adapter": "^14.2.3",
|
||||||
"@angular/platform-browser": "^14.2.8",
|
"@angular/platform-browser": "^14.2.9",
|
||||||
"@angular/platform-browser-dynamic": "^14.2.8",
|
"@angular/platform-browser-dynamic": "^14.2.9",
|
||||||
"@angular/router": "^14.2.8",
|
"@angular/router": "^14.2.9",
|
||||||
"@angular/service-worker": "^14.2.8",
|
"@angular/service-worker": "^14.2.9",
|
||||||
"@ctrl/ngx-codemirror": "^5.1.1",
|
"@ctrl/ngx-codemirror": "^5.1.1",
|
||||||
"@grpc/grpc-js": "^1.7.1",
|
"@grpc/grpc-js": "^1.7.1",
|
||||||
"@ngx-translate/core": "^14.0.0",
|
"@ngx-translate/core": "^14.0.0",
|
||||||
@ -46,26 +46,26 @@
|
|||||||
"ngx-quicklink": "^0.3.0",
|
"ngx-quicklink": "^0.3.0",
|
||||||
"rxjs": "~7.5.7",
|
"rxjs": "~7.5.7",
|
||||||
"tinycolor2": "^1.4.2",
|
"tinycolor2": "^1.4.2",
|
||||||
"tslib": "^2.2.0",
|
"tslib": "^2.4.1",
|
||||||
"uuid": "^9.0.0",
|
"uuid": "^9.0.0",
|
||||||
"zone.js": "~0.11.4"
|
"zone.js": "~0.11.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "^14.2.7",
|
"@angular-devkit/build-angular": "^14.2.8",
|
||||||
"@angular-eslint/builder": "^14.1.2",
|
"@angular-eslint/builder": "^14.1.2",
|
||||||
"@angular-eslint/eslint-plugin": "^14.1.2",
|
"@angular-eslint/eslint-plugin": "^14.1.2",
|
||||||
"@angular-eslint/eslint-plugin-template": "^14.1.2",
|
"@angular-eslint/eslint-plugin-template": "^14.1.2",
|
||||||
"@angular-eslint/schematics": "^14.1.2",
|
"@angular-eslint/schematics": "^14.1.2",
|
||||||
"@angular-eslint/template-parser": "^14.1.2",
|
"@angular-eslint/template-parser": "^14.1.2",
|
||||||
"@angular/cli": "^14.2.7",
|
"@angular/cli": "^14.2.8",
|
||||||
"@angular/compiler-cli": "^14.2.8",
|
"@angular/compiler-cli": "^14.2.9",
|
||||||
"@angular/language-service": "^14.2.8",
|
"@angular/language-service": "^14.2.9",
|
||||||
"@types/jasmine": "~4.3.0",
|
"@types/jasmine": "~4.3.0",
|
||||||
"@types/jasminewd2": "~2.0.10",
|
"@types/jasminewd2": "~2.0.10",
|
||||||
"@types/jsonwebtoken": "^8.5.5",
|
"@types/jsonwebtoken": "^8.5.5",
|
||||||
"@types/node": "^18.8.1",
|
"@types/node": "^18.8.1",
|
||||||
"@typescript-eslint/eslint-plugin": "5.39.0",
|
"@typescript-eslint/parser": "5.42.0",
|
||||||
"@typescript-eslint/parser": "5.39.0",
|
"@typescript-eslint/eslint-plugin": "5.42.0",
|
||||||
"codelyzer": "^6.0.0",
|
"codelyzer": "^6.0.0",
|
||||||
"eslint": "^8.26.0",
|
"eslint": "^8.26.0",
|
||||||
"jasmine-core": "~4.4.0",
|
"jasmine-core": "~4.4.0",
|
||||||
|
@ -34,16 +34,18 @@ export class GeneralSettingsComponent implements OnInit {
|
|||||||
|
|
||||||
public savePolicy(): void {
|
public savePolicy(): void {
|
||||||
const prom = this.updateData();
|
const prom = this.updateData();
|
||||||
|
this.loading = true;
|
||||||
if (prom) {
|
if (prom) {
|
||||||
prom
|
prom
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.toast.showInfo('POLICY.LOGIN_POLICY.SAVED', true);
|
this.toast.showInfo('POLICY.LOGIN_POLICY.SAVED', true);
|
||||||
this.loading = true;
|
this.loading = false;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.fetchData();
|
this.fetchData();
|
||||||
}, 2000);
|
}, 2000);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
this.loading = false;
|
||||||
this.toast.showError(error);
|
this.toast.showError(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ import { Component, OnInit } from '@angular/core';
|
|||||||
import { MatDialog } from '@angular/material/dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { InfoSectionType } from 'src/app/modules/info-section/info-section.component';
|
import { InfoSectionType } from 'src/app/modules/info-section/info-section.component';
|
||||||
import { WarnDialogComponent } from 'src/app/modules/warn-dialog/warn-dialog.component';
|
import { WarnDialogComponent } from 'src/app/modules/warn-dialog/warn-dialog.component';
|
||||||
import { Domain } from 'src/app/proto/generated/zitadel/org_pb';
|
import { Domain, DomainValidationType } from 'src/app/proto/generated/zitadel/org_pb';
|
||||||
import { Breadcrumb, BreadcrumbService, BreadcrumbType } from 'src/app/services/breadcrumb.service';
|
import { Breadcrumb, BreadcrumbService, BreadcrumbType } from 'src/app/services/breadcrumb.service';
|
||||||
import { ManagementService } from 'src/app/services/mgmt.service';
|
import { ManagementService } from 'src/app/services/mgmt.service';
|
||||||
import { ToastService } from 'src/app/services/toast.service';
|
import { ToastService } from 'src/app/services/toast.service';
|
||||||
@ -62,13 +62,16 @@ export class DomainsComponent implements OnInit {
|
|||||||
width: '400px',
|
width: '400px',
|
||||||
});
|
});
|
||||||
|
|
||||||
dialogRef.afterClosed().subscribe((resp) => {
|
dialogRef.afterClosed().subscribe((domainName) => {
|
||||||
if (resp) {
|
if (domainName) {
|
||||||
this.mgmtService
|
this.mgmtService
|
||||||
.addOrgDomain(resp)
|
.addOrgDomain(domainName)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.toast.showInfo('ORG.TOAST.DOMAINADDED', true);
|
this.toast.showInfo('ORG.TOAST.DOMAINADDED', true);
|
||||||
|
this.verifyDomain({
|
||||||
|
domainName: domainName,
|
||||||
|
validationType: DomainValidationType.DOMAIN_VALIDATION_TYPE_UNSPECIFIED,
|
||||||
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.loadDomains();
|
this.loadDomains();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
@ -91,8 +94,8 @@ export class DomainsComponent implements OnInit {
|
|||||||
width: '400px',
|
width: '400px',
|
||||||
});
|
});
|
||||||
|
|
||||||
dialogRef.afterClosed().subscribe((resp) => {
|
dialogRef.afterClosed().subscribe((del) => {
|
||||||
if (resp) {
|
if (del) {
|
||||||
this.mgmtService
|
this.mgmtService
|
||||||
.removeOrgDomain(domain)
|
.removeOrgDomain(domain)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
@ -109,7 +112,7 @@ export class DomainsComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public verifyDomain(domain: Domain.AsObject): void {
|
public verifyDomain(domain: Partial<Domain.AsObject>): void {
|
||||||
const dialogRef = this.dialog.open(DomainVerificationComponent, {
|
const dialogRef = this.dialog.open(DomainVerificationComponent, {
|
||||||
data: {
|
data: {
|
||||||
domain: domain,
|
domain: domain,
|
||||||
|
@ -73,7 +73,6 @@ export class OrgCreateComponent {
|
|||||||
private _location: Location,
|
private _location: Location,
|
||||||
private fb: UntypedFormBuilder,
|
private fb: UntypedFormBuilder,
|
||||||
private mgmtService: ManagementService,
|
private mgmtService: ManagementService,
|
||||||
private authService: GrpcAuthService,
|
|
||||||
breadcrumbService: BreadcrumbService,
|
breadcrumbService: BreadcrumbService,
|
||||||
) {
|
) {
|
||||||
const instanceBread = new Breadcrumb({
|
const instanceBread = new Breadcrumb({
|
||||||
@ -83,16 +82,6 @@ export class OrgCreateComponent {
|
|||||||
});
|
});
|
||||||
|
|
||||||
breadcrumbService.setBreadcrumb([instanceBread]);
|
breadcrumbService.setBreadcrumb([instanceBread]);
|
||||||
|
|
||||||
this.authService
|
|
||||||
.isAllowed(['iam.write'])
|
|
||||||
.pipe(take(1))
|
|
||||||
.subscribe((allowed) => {
|
|
||||||
if (allowed) {
|
|
||||||
this.forSelf = false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
this.initForm();
|
this.initForm();
|
||||||
|
|
||||||
this.adminService.getSupportedLanguages().then((supportedResp) => {
|
this.adminService.getSupportedLanguages().then((supportedResp) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user