Wire up showing settings via footer link or cog icon

The changeListener is not wired up, so nothing will actually happen if you
click the link or cog. You should see redux actions flow trying to show it
though.

Change-Id: I29e629db63a4511a76c132f44f2ebf13254a4c6f
This commit is contained in:
joakin 2016-12-12 19:07:07 +01:00
parent 034f1840ab
commit e7c8f36a9f
2 changed files with 5 additions and 1 deletions

View file

@ -57,7 +57,10 @@
return function ( prevState, state ) {
if ( $footerLink === undefined ) {
$footerLink = createFooterLink();
$footerLink.click( boundActions.showSettings );
$footerLink.click( function ( e ) {
e.preventDefault();
boundActions.showSettings();
} );
}
if ( state.preview.enabled ) {

View file

@ -267,6 +267,7 @@
layoutPreview( preview, layout );
preview.el.hover( boundActions.previewDwell, boundActions.previewAbandon );
preview.el.find( '.mwe-popups-settings-icon' ).click( boundActions.showSettings );
preview.el.show();