-
Notifications
You must be signed in to change notification settings - Fork 121
Dashboard: Add button to share store #9796
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
Conversation
You can test the changes from this Pull Request by:
|
selanthiraiyan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works as expected. 🎉 🚢
|
|
||
| func configureShareButton() { | ||
| // Only show share button if the site is public. | ||
| guard let site = ServiceLocator.stores.sessionManager.defaultSite, site.isPublic else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Moving this to view model will allow us to unit test this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated this in 1ec15ac 👍
| } | ||
|
|
||
| @objc | ||
| func shareStore() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: This logic could be moved to view model as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also updated in 1ec15ac.
Part of #9785
Description
This PR adds a button to the top right of the My Store screen to let merchants share their stores.
Testing instructions
🔵 Tracked dashboard_share_your_store_button_tapped.Screenshots
RELEASE-NOTES.txtif necessary.