Fix issues in account actions (#1599)

Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
José Alberto Hernández
2022-12-18 13:06:03 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent 1da2630974
commit eae1b350b7
52 changed files with 335 additions and 298 deletions
@@ -8,14 +8,6 @@
<div fxLayout="column">
<mat-form-field>
<mat-label>S3 Access Key</mat-label>
<input matInput required formControlName="s3_access_key">
<mat-error *ngIf="amazonS3ConfigurationForm.controls.s3_access_key.hasError('required')">
S3 Access Key is <strong>required</strong>
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>S3 Bucket Name</mat-label>
<input matInput required formControlName="s3_bucket_name">
@@ -24,9 +16,27 @@
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>S3 Access Key</mat-label>
<input matInput required type="{{ accessKeyInputType }}" formControlName="s3_access_key">
<button mat-button *ngIf="amazonS3ConfigurationForm.controls.s3_access_key.value" matSuffix mat-icon-button
(mousedown)="accessKeyInputType = 'text'" (mouseup)="accessKeyInputType = 'password'">
<fa-icon *ngIf="accessKeyInputType === 'password'" icon="eye"></fa-icon>
<fa-icon *ngIf="accessKeyInputType === 'text'" icon="eye-slash"></fa-icon>
</button>
<mat-error *ngIf="amazonS3ConfigurationForm.controls.s3_access_key.hasError('required')">
S3 Access Key is <strong>required</strong>
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>S3 Secret Key</mat-label>
<input matInput required formControlName="s3_secret_key">
<input matInput required type="{{ secretKeyInputType }}" formControlName="s3_secret_key">
<button mat-button *ngIf="amazonS3ConfigurationForm.controls.s3_secret_key.value" matSuffix mat-icon-button
(mousedown)="secretKeyInputType = 'text'" (mouseup)="secretKeyInputType = 'password'">
<fa-icon *ngIf="secretKeyInputType === 'password'" icon="eye"></fa-icon>
<fa-icon *ngIf="secretKeyInputType === 'text'" icon="eye-slash"></fa-icon>
</button>
<mat-error *ngIf="amazonS3ConfigurationForm.controls.s3_secret_key.hasError('required')">
S3 Secret Key is <strong>required</strong>
</mat-error>