Skip to content

Commit

Permalink
UI improvement && better case handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Mutugiii committed Dec 18, 2023
1 parent cbd8ae6 commit 4ad0a12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/app/users/users-update/users-update.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@
</form>
</div>
<div *ngIf="!submissionMode" class="profile-image-section">
<button *ngIf="currentImgKey && !file" mat-raised-button color="warn" (click)="deleteImageAttachment()">Remove</button>
<img class="profile-image-update" [src]="previewSrc">
<div style="text-align: center;">
<img class="profile-image-update" [src]="previewSrc"><br>
<button *ngIf="(uploadImage && currentImgKey) && !file" mat-raised-button color="accent" (click)="deleteImageAttachment()">Remove</button>
</div>
<div class="profile-image-upload">
<ngx-img (onSelect)="onImageSelect($event)" (onReset)="removeImageFile()" [config]="ngxImgConfig"
[text]="ngxImgText" [errorTexts]="ngxImgErrText"></ngx-img>
Expand Down
2 changes: 1 addition & 1 deletion src/app/users/users-update/users-update.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export class UsersUpdateComponent implements OnInit {
}

this.currentProfileImg = 'assets/image.png';
this.removeImageFile()
this.removeImageFile();
}


Expand Down

0 comments on commit 4ad0a12

Please sign in to comment.