Skip to content

Conversation

@willshowell
Copy link
Contributor

Fixes #5657

This also changes the SimpleSnackBar's api from dismiss() to action() bc the previous naming was misleading.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jul 11, 2017

/** Marks the snackbar action clicked. */
_action(): void {
closeWithAction(): void {
Copy link
Member

Choose a reason for hiding this comment

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

Since this is a public API now, could you add a unit test that is based around calling this? The current unit test only deals with clicking the button directly.

@willshowell willshowell force-pushed the fix/snackbar-action-close branch from cc5726f to 0e8a65a Compare July 13, 2017 14:49
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Jul 25, 2017
@andrewseguin andrewseguin merged commit f4f64ac into angular:master Jul 25, 2017
@willshowell willshowell deleted the fix/snackbar-action-close branch July 26, 2017 14:07
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Snackbar missing public action method for custom snackbars

4 participants