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

Feature: Benutzerdaten ändern (inkl. Profilbild) #19

Merged
merged 38 commits into from
Mar 8, 2024

Conversation

np-complete-graph
Copy link
Contributor

No description provided.

@np-complete-graph
Copy link
Contributor Author

image

image.src = this.fallbackImageUrl;
}

isCardInvalid(): boolean {
Copy link
Contributor Author

@np-complete-graph np-complete-graph Mar 3, 2024

Choose a reason for hiding this comment

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

This could be a variable instead of a getter (is run everytime on change detection)

isCardInvalid = !(
       this.userForm.valid &&
       !this.image?.nativeElement.src.endsWith(this.fallbackImageUrl)
     );```

isCardInvalid(): boolean {
return !(
this.userForm.valid &&
!this.image?.nativeElement.src.endsWith(this.fallbackImageUrl)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could add an additional form input, that just holds the image url, then we don't need the direct HTML element ref and can mark it as required.

@weber-chris weber-chris merged commit c5c8ed8 into main Mar 8, 2024
2 checks passed
@weber-chris weber-chris deleted the feature/initial_card branch March 8, 2024 12:46
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.

3 participants