Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 2211d2bd authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

implement suggestions for the access-token-generation-dialog.component.html

parent f9e3dd0e
Branches bugfix/EDELIVERY-13839-rest-error-fix-redirection
No related tags found
No related merge requests found
......@@ -20,6 +20,14 @@
</mat-card>
<mat-card>
<mat-card-content>
<mat-form-field *ngIf="!securityService.getCurrentUser()?.casAuthenticated" style="width:100%">
<input matInput [placeholder]="getPasswordTitle" [type]="hideCurrPwdFiled ? 'password' : 'text'"
formControlName="current-password" required id="cp_id">
<mat-icon matSuffix
(click)="hideCurrPwdFiled = !hideCurrPwdFiled">{{hideCurrPwdFiled ? 'visibility_off' : 'visibility'}}</mat-icon>
<mat-error *ngIf="passwordError('current-password', 'required')">Password is required</mat-error>
</mat-form-field>
<mat-card-actions>
<button mat-raised-button color="primary" (click)="regenerateAccessToken()"
[disabled]="!dialogForm.valid">
......@@ -30,13 +38,6 @@
Token will be generated immediately.
</mat-label>
</mat-card-actions>
<mat-form-field *ngIf="!securityService.getCurrentUser()?.casAuthenticated" style="width:100%">
<input matInput [placeholder]="getPasswordTitle" [type]="hideCurrPwdFiled ? 'password' : 'text'"
formControlName="current-password" required id="cp_id">
<mat-icon matSuffix
(click)="hideCurrPwdFiled = !hideCurrPwdFiled">{{hideCurrPwdFiled ? 'visibility_off' : 'visibility'}}</mat-icon>
<mat-error *ngIf="passwordError('current-password', 'required')">Password is required</mat-error>
</mat-form-field>
<mat-form-field style="width:100%">
<input matInput placeholder="Access token id" formControlName="accessTokenId" id="at_id" readonly="true">
......
......@@ -17,7 +17,7 @@ import {SearchTableEntityStatus} from "../../search-table/search-table-entity-st
export class AccessTokenGenerationDialogComponent {
dateTimeFormat: string = SmpConstants.DATE_TIME_FORMAT;
formTitle = "Access token generation dialog!";
formTitle = "Access token generation dialog";
dialogForm: FormGroup;
hideCurrPwdFiled: boolean = true;
hideNewPwdFiled: boolean = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment