Skip to content
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

Merged
merged 6 commits into from
Oct 29, 2020
Merged

Delete photo #628

merged 6 commits into from
Oct 29, 2020

Conversation

yulkats
Copy link
Contributor

@yulkats yulkats commented Oct 26, 2020

1530;

  1. Added 'Delete photo' button at 'Edit profile page'.
    2020-10-26 (3)
    )

  2. Added notification when user want to delete photo.
    2020-10-28

  3. Added spinner for "Save photo" and "Delete photo" buttons.
    2020-10-28 (7)

  4. Delete button is disabled if user has a default photo
    2020-10-28 (5)

@@ -40,6 +40,11 @@ export class EditPhotoPopUpComponent implements OnInit {
this.matDialogRef.close();
}

public delitePhoto(): void {
this.editProfileService.deleProfilePhoto().subscribe(
() => this.closeEditPhoto());
Copy link
Collaborator

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?

Copy link
Contributor Author

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"
Copy link
Collaborator

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 ?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, added

@mr-pavlenko mr-pavlenko merged commit b103adf into dev Oct 29, 2020
@mr-pavlenko mr-pavlenko deleted the feature/delete-photo branch October 29, 2020 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants