fix(console): copyable username (#4683)

fix: copyable username

Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
Max Peintner
2022-11-14 17:11:14 +01:00
committed by GitHub
co-authored by Livio Spring
parent 6c01e6a55b
commit 6c7a05ea0d
7 changed files with 16 additions and 4 deletions
@@ -8,6 +8,9 @@
<cnsl-info-section *ngIf="data.warnSectionKey" [type]="InfoSectionType.WARN">{{
data.warnSectionKey | translate
}}</cnsl-info-section>
<p *ngIf="data.hintKey" class="desc cnsl-secondary-text">{{ data.hintKey | translate: { value: data.confirmation } }}</p>
<cnsl-form-field *ngIf="data.confirmation && data.confirmationKey" class="formfield">
<cnsl-label>{{ data.confirmationKey | translate: { value: data.confirmation } }}</cnsl-label>
<input cnslInput [(ngModel)]="confirm" data-e2e="confirm-dialog-input" />
@@ -256,8 +256,10 @@ export class UserTableComponent implements OnInit {
confirmKey: 'ACTIONS.DELETE',
cancelKey: 'ACTIONS.CANCEL',
titleKey: 'USER.DIALOG.DELETE_SELF_TITLE',
descriptionKey: 'USER.DIALOG.DELETE_SELF_DESCRIPTION',
confirmationKey: 'USER.DIALOG.TYPEUSERNAME',
warnSectionKey: 'USER.DIALOG.DELETE_SELF_DESCRIPTION',
hintKey: 'USER.DIALOG.TYPEUSERNAME',
hintParam: 'USER.DIALOG.DELETE_DESCRIPTION',
confirmationKey: 'USER.DIALOG.USERNAME',
confirmation: user.preferredLoginName,
};
@@ -265,8 +267,10 @@ export class UserTableComponent implements OnInit {
confirmKey: 'ACTIONS.DELETE',
cancelKey: 'ACTIONS.CANCEL',
titleKey: 'USER.DIALOG.DELETE_TITLE',
descriptionKey: 'USER.DIALOG.DELETE_DESCRIPTION',
confirmationKey: 'USER.DIALOG.TYPEUSERNAME',
warnSectionKey: 'USER.DIALOG.DELETE_DESCRIPTION',
hintKey: 'USER.DIALOG.TYPEUSERNAME',
hintParam: 'USER.DIALOG.DELETE_DESCRIPTION',
confirmationKey: 'USER.DIALOG.USERNAME',
confirmation: user.preferredLoginName,
};