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

feat(logging): show snackbars on info and warning #186

Merged
merged 2 commits into from
Apr 27, 2021
Merged

Conversation

ca-d
Copy link
Contributor

@ca-d ca-d commented Apr 27, 2021

Closes #184 .

I did not manage to regenerate test snapshots and would appreciate help with this.

@ca-d ca-d added this to the Sprint 2021-04-30 milestone Apr 27, 2021
@ca-d ca-d requested a review from JakobVogelsang April 27, 2021 11:44
@ca-d ca-d self-assigned this Apr 27, 2021
Copy link
Collaborator

@JakobVogelsang JakobVogelsang left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -146,7 +159,7 @@ export function Logging<TBase extends LitElementConstructor>(Base: TBase) {
<mwc-list-item
class="${entry.kind}"
graphic="icon"
?twoline=${entry.message}
?twoline=${!!entry.message}
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is this for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is for making the linter happy, since it expects listItem.twoline to be a boolean.

@JakobVogelsang JakobVogelsang marked this pull request as ready for review April 27, 2021 13:07
@ca-d ca-d merged commit dc6081b into main Apr 27, 2021
@ca-d ca-d deleted the add-info-snackbars branch April 27, 2021 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add info and warning snackbars
2 participants