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

DEV: Use a getter for the avatar size on header/user-dropdown/notifications #27068

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

megothss
Copy link
Contributor

No description provided.

header/user-dropdown/notifications
@@ -16,7 +16,7 @@ export default class Notifications extends Component {
@service currentUser;
@service siteSettings;

avatarSize = "medium";
#defaultAvatarSize = "medium";
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd extract it to a const, to signal that this isn't mutable

@@ -32,6 +32,10 @@ export default class Notifications extends Component {
);
}

get avatarSize() {
Copy link
Contributor

Choose a reason for hiding this comment

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

and would add a short comment mentioning this is done for extensibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants