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
@@ -5,7 +5,7 @@
<div mat-dialog-content>
<cnsl-form-field class="formfield">
<cnsl-label>{{ data.labelKey | translate }}</cnsl-label>
<input cnslInput [(ngModel)]="name" />
<input data-e2e="name" cnslInput [(ngModel)]="name" />
</cnsl-form-field>
</div>
<div mat-dialog-actions class="action">
@@ -13,7 +13,7 @@
{{ 'ACTIONS.CLOSE' | translate }}
</button>
<button [disabled]="!name" cdkFocusInitial color="primary" mat-raised-button (click)="closeDialog(name)">
<button data-e2e="dialog-submit" [disabled]="!name" color="primary" mat-raised-button (click)="closeDialog(name)">
{{ 'ACTIONS.RENAME' | translate }}
</button>
</div>
@@ -7,7 +7,7 @@
</a>
<div class="cnsl-title-row-wrapper">
<div class="cnsl-title-row">
<h2 class="cnsl-title">{{ title }}</h2>
<h2 data-e2e="top-view-title" class="cnsl-title">{{ title }}</h2>
<div
class="cnsl-state-dot"
*ngIf="isActive || isInactive"
@@ -28,6 +28,7 @@
<ng-container *ngIf="hasActions">
<button
data-e2e="actions"
class="cnsl-actions-trigger-desk cnsl-action-button"
mat-raised-button
color="primary"