-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete photo #628
Delete photo #628
Conversation
@@ -40,6 +40,11 @@ export class EditPhotoPopUpComponent implements OnInit { | |||
this.matDialogRef.close(); | |||
} | |||
|
|||
public delitePhoto(): void { | |||
this.editProfileService.deleProfilePhoto().subscribe( | |||
() => this.closeEditPhoto()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens in case of error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@@ -22,6 +22,9 @@ | |||
accept=".jpg, .jpeg, .png" | |||
(change)="onSelectPhoto($event)"> | |||
</label> | |||
<button type="button" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<button type="button" [disabled]="!youCan'tClickMe" .....
how about making the button disabled, if user already have a default photo ?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, added
1530;
Added 'Delete photo' button at 'Edit profile page'.
)
Added notification when user want to delete photo.
Added spinner for "Save photo" and "Delete photo" buttons.
Delete button is disabled if user has a default photo