mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-06 08:27:37 +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": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "5mb",
|
||||
"maximumWarning": "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,
|
||||
"dependencies": {
|
||||
"@angular/animations": "^14.2.8",
|
||||
"@angular/cdk": "^14.2.6",
|
||||
"@angular/common": "^14.2.8",
|
||||
"@angular/compiler": "^14.2.8",
|
||||
"@angular/core": "^14.2.8",
|
||||
"@angular/forms": "^14.2.8",
|
||||
"@angular/material": "^14.2.6",
|
||||
"@angular/material-moment-adapter": "^14.2.6",
|
||||
"@angular/platform-browser": "^14.2.8",
|
||||
"@angular/platform-browser-dynamic": "^14.2.8",
|
||||
"@angular/router": "^14.2.8",
|
||||
"@angular/service-worker": "^14.2.8",
|
||||
"@angular/animations": "^14.2.9",
|
||||
"@angular/cdk": "^14.2.3",
|
||||
"@angular/common": "^14.2.9",
|
||||
"@angular/compiler": "^14.2.9",
|
||||
"@angular/core": "^14.2.9",
|
||||
"@angular/forms": "^14.2.9",
|
||||
"@angular/material": "^14.2.3",
|
||||
"@angular/material-moment-adapter": "^14.2.3",
|
||||
"@angular/platform-browser": "^14.2.9",
|
||||
"@angular/platform-browser-dynamic": "^14.2.9",
|
||||
"@angular/router": "^14.2.9",
|
||||
"@angular/service-worker": "^14.2.9",
|
||||
"@ctrl/ngx-codemirror": "^5.1.1",
|
||||
"@grpc/grpc-js": "^1.7.1",
|
||||
"@ngx-translate/core": "^14.0.0",
|
||||
@ -46,26 +46,26 @@
|
||||
"ngx-quicklink": "^0.3.0",
|
||||
"rxjs": "~7.5.7",
|
||||
"tinycolor2": "^1.4.2",
|
||||
"tslib": "^2.2.0",
|
||||
"tslib": "^2.4.1",
|
||||
"uuid": "^9.0.0",
|
||||
"zone.js": "~0.11.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "^14.2.7",
|
||||
"@angular-devkit/build-angular": "^14.2.8",
|
||||
"@angular-eslint/builder": "^14.1.2",
|
||||
"@angular-eslint/eslint-plugin": "^14.1.2",
|
||||
"@angular-eslint/eslint-plugin-template": "^14.1.2",
|
||||
"@angular-eslint/schematics": "^14.1.2",
|
||||
"@angular-eslint/template-parser": "^14.1.2",
|
||||
"@angular/cli": "^14.2.7",
|
||||
"@angular/compiler-cli": "^14.2.8",
|
||||
"@angular/language-service": "^14.2.8",
|
||||
"@angular/cli": "^14.2.8",
|
||||
"@angular/compiler-cli": "^14.2.9",
|
||||
"@angular/language-service": "^14.2.9",
|
||||
"@types/jasmine": "~4.3.0",
|
||||
"@types/jasminewd2": "~2.0.10",
|
||||
"@types/jsonwebtoken": "^8.5.5",
|
||||
"@types/node": "^18.8.1",
|
||||
"@typescript-eslint/eslint-plugin": "5.39.0",
|
||||
"@typescript-eslint/parser": "5.39.0",
|
||||
"@typescript-eslint/parser": "5.42.0",
|
||||
"@typescript-eslint/eslint-plugin": "5.42.0",
|
||||
"codelyzer": "^6.0.0",
|
||||
"eslint": "^8.26.0",
|
||||
"jasmine-core": "~4.4.0",
|
||||
|
@ -34,16 +34,18 @@ export class GeneralSettingsComponent implements OnInit {
|
||||
|
||||
public savePolicy(): void {
|
||||
const prom = this.updateData();
|
||||
this.loading = true;
|
||||
if (prom) {
|
||||
prom
|
||||
.then(() => {
|
||||
this.toast.showInfo('POLICY.LOGIN_POLICY.SAVED', true);
|
||||
this.loading = true;
|
||||
this.loading = false;
|
||||
setTimeout(() => {
|
||||
this.fetchData();
|
||||
}, 2000);
|
||||
})
|
||||
.catch((error) => {
|
||||
this.loading = false;
|
||||
this.toast.showError(error);
|
||||
});
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ import { Component, OnInit } from '@angular/core';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { InfoSectionType } from 'src/app/modules/info-section/info-section.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 { ManagementService } from 'src/app/services/mgmt.service';
|
||||
import { ToastService } from 'src/app/services/toast.service';
|
||||
@ -62,13 +62,16 @@ export class DomainsComponent implements OnInit {
|
||||
width: '400px',
|
||||
});
|
||||
|
||||
dialogRef.afterClosed().subscribe((resp) => {
|
||||
if (resp) {
|
||||
dialogRef.afterClosed().subscribe((domainName) => {
|
||||
if (domainName) {
|
||||
this.mgmtService
|
||||
.addOrgDomain(resp)
|
||||
.addOrgDomain(domainName)
|
||||
.then(() => {
|
||||
this.toast.showInfo('ORG.TOAST.DOMAINADDED', true);
|
||||
|
||||
this.verifyDomain({
|
||||
domainName: domainName,
|
||||
validationType: DomainValidationType.DOMAIN_VALIDATION_TYPE_UNSPECIFIED,
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.loadDomains();
|
||||
}, 1000);
|
||||
@ -91,8 +94,8 @@ export class DomainsComponent implements OnInit {
|
||||
width: '400px',
|
||||
});
|
||||
|
||||
dialogRef.afterClosed().subscribe((resp) => {
|
||||
if (resp) {
|
||||
dialogRef.afterClosed().subscribe((del) => {
|
||||
if (del) {
|
||||
this.mgmtService
|
||||
.removeOrgDomain(domain)
|
||||
.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, {
|
||||
data: {
|
||||
domain: domain,
|
||||
|
@ -73,7 +73,6 @@ export class OrgCreateComponent {
|
||||
private _location: Location,
|
||||
private fb: UntypedFormBuilder,
|
||||
private mgmtService: ManagementService,
|
||||
private authService: GrpcAuthService,
|
||||
breadcrumbService: BreadcrumbService,
|
||||
) {
|
||||
const instanceBread = new Breadcrumb({
|
||||
@ -83,16 +82,6 @@ export class OrgCreateComponent {
|
||||
});
|
||||
|
||||
breadcrumbService.setBreadcrumb([instanceBread]);
|
||||
|
||||
this.authService
|
||||
.isAllowed(['iam.write'])
|
||||
.pipe(take(1))
|
||||
.subscribe((allowed) => {
|
||||
if (allowed) {
|
||||
this.forSelf = false;
|
||||
}
|
||||
});
|
||||
|
||||
this.initForm();
|
||||
|
||||
this.adminService.getSupportedLanguages().then((supportedResp) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user