Code development platform for open source projects from the European Union institutions

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
No related branches found
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