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

Site Settings: Add Disconnect Confirmation Page #18796

Merged
merged 22 commits into from
Oct 17, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fullscreen styling
  • Loading branch information
ockham committed Oct 16, 2017
commit 10e5e3c204fb7d79cd0755ebcd03b6c7e2f840d1
1 change: 1 addition & 0 deletions client/my-sites/site-settings/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ const controller = {
},

disconnectSiteConfirm( context ) {
ReactDom.unmountComponentAtNode( document.getElementById( 'secondary' ) );
renderPage( context, <ConfirmDisconnection /> );
},

Expand Down
2 changes: 1 addition & 1 deletion client/my-sites/site-settings/disconnect-site/confirm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const ConfirmDisconnection = ( { siteId, siteSlug, translate } ) => {
}

return (
<Main className="disconnect-site__confirm">
<Main className="disconnect-site__confirm disconnect-site site-settings">
<DocumentHead title={ translate( 'Site Settings' ) } />
<FormattedHeader
Copy link
Member

Choose a reason for hiding this comment

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

This is rather a design comment, but I was just thinking: don't we have just too many headings/subheadings here?

cc @keoshi

Copy link
Contributor

Choose a reason for hiding this comment

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

@tyxla we totally do, this should be adjusted.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I found this mockup over in the PR desc for #18039

screen shot 2017-09-13 at 20 30 59

But it diverges quite a bit from the dialog, especially regarding the layout of the "By disconnection..." part...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also, I guess we want full-screen (i.e. no sidebar)?

Copy link
Contributor

Choose a reason for hiding this comment

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

@ockham I would say let's leave the big paragraph as is (without the red icon) and just remove the heading. Also, yes to full-screen!

headerText={ translate( 'Confirm Disconnection' ) }
Expand Down
1 change: 0 additions & 1 deletion client/my-sites/site-settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export default function() {
page(
'/settings/disconnect-site/confirm/:site_id',
mySitesController.siteSelection,
mySitesController.navigation,
settingsController.setScroll,
controller.disconnectSiteConfirm
);
Expand Down