feat(console): rename org (#4542)

* rename org

* add data-e2e

* e2e test

* restore state after

* use ngIf instead of hasrole directive and initialized regex

* rm h2 check

* Update e2e/cypress/e2e/organization/organizations.cy.ts

Co-authored-by: Elio Bischof <[email protected]>

* Update console/src/assets/i18n/de.json

Co-authored-by: Elio Bischof <[email protected]>

* Update console/src/assets/i18n/de.json

Co-authored-by: Elio Bischof <[email protected]>

* Update console/src/assets/i18n/en.json

Co-authored-by: Elio Bischof <[email protected]>

* change e2e test

* org param

* reintroduct org param

* use org query param

* org rename test

* no initial focus on button

* contain name

Co-authored-by: Elio Bischof <[email protected]>
This commit is contained in:
Max Peintner
2022-10-20 14:08:13 +02:00
committed by GitHub
co-authored by Elio Bischof
parent 2bfa51da1c
commit 6e89b7d0a1
16 changed files with 186 additions and 15 deletions
+6 -1
View File
@@ -8,7 +8,7 @@ import { DomSanitizer } from '@angular/platform-browser';
import { ActivatedRoute, Router, RouterOutlet } from '@angular/router';
import { LangChangeEvent, TranslateService } from '@ngx-translate/core';
import { Observable, of, Subject } from 'rxjs';
import { map, takeUntil } from 'rxjs/operators';
import { filter, map, takeUntil } from 'rxjs/operators';
import { accountCard, adminLineAnimation, navAnimations, routeAnimations, toolbarAnimation } from './animations';
import { Org } from './proto/generated/zitadel/org_pb';
@@ -191,6 +191,11 @@ export class AppComponent implements OnDestroy {
}
});
this.activatedRoute.queryParams.pipe(filter((params) => !!params.org)).subscribe((params) => {
const { org } = params;
this.authService.getActiveOrg(org);
});
this.authenticationService.authenticationChanged.pipe(takeUntil(this.destroy$)).subscribe((authenticated) => {
if (authenticated) {
this.authService