Skip to content

Commit

Permalink
Exporter: Always show basic Export button, change text to clarify
Browse files Browse the repository at this point in the history
The button displayed above the advanced settings is now 'Export All',
and is displayed even when the advanced settings are visible.
  • Loading branch information
jordwest committed Jan 4, 2016
1 parent c4a5c62 commit 77a1804
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions client/my-sites/exporter/exporter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ export default React.createClass( {
const { setPostType, startExport } = this.props;
const { postType, shouldShowProgress } = this.props;

const exportButton = (
<SpinnerButton
className="exporter__export-button"
loading={ shouldShowProgress }
isPrimary={ true }
onClick={ startExport }
text={ this.translate( 'Export All' ) }
loadingText={ this.translate( 'Exporting…' ) } />
);

return (
<div className="exporter">
<FoldableCard
Expand All @@ -39,15 +49,8 @@ export default React.createClass( {
</h2>
</div>
}
summary={
<SpinnerButton
className="exporter__export-button"
loading={ shouldShowProgress }
isPrimary={ true }
onClick={ startExport }
text={ this.translate( 'Export' ) }
loadingText={ this.translate( 'Exporting…' ) } />
}
summary={ exportButton }
expandedSummary={ exportButton }
>
<AdvancedSettings
postType={ postType }
Expand Down

0 comments on commit 77a1804

Please sign in to comment.