Skip to content

Commit

Permalink
Merge pull request #1278 from Automattic/fix/global-notice-action-but…
Browse files Browse the repository at this point in the history
…tons

Notices: Make action buttons appear in global notices again
  • Loading branch information
jordwest committed Dec 4, 2015
2 parents d6f0193 + fefe2ff commit eec1381
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion client/notices/notices-list.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import debugModule from 'debug';
* Internal Dependencies
*/
import Notice from 'components/notice';
import NoticeAction from 'components/notice/notice-action';
import notices from 'notices';
import observe from 'lib/mixins/data-observe';
import DeleteSiteNotices from './delete-site-notices';
Expand Down Expand Up @@ -87,7 +88,15 @@ export default React.createClass( {
isCompact={ notice.isCompact }
onClick={ this.removeNotice.bind( this, notice ) }
showDismiss={ notice.showDismiss }
/>
>
{ notice.button &&
<NoticeAction
href={ notice.href }
onClick={ notice.onClick }
>
{ notice.button }
</NoticeAction> }
</Notice>
);
}, this );

Expand Down

0 comments on commit eec1381

Please sign in to comment.