Skip to content

Commit

Permalink
Merge pull request Automattic#97 in SPP/plugin-liveblogging from MTL-…
Browse files Browse the repository at this point in the history
…790-MTL-797-Liveblog-template-changes to master

* commit '40fd06f0680e8d2f4ac9f3222a4a78c8d0489120':
  MTL-790 MTL-797 - Liveblog status title, update button text change
  • Loading branch information
Hall, Cain committed Jun 28, 2018
2 parents 36e9304 + 40fd06f commit bf76283
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/react/components/UpdateButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const UpdateButton = ({ polling, click }) => {
className="liveblog-btn liveblog-update-btn"
onClick={click}
>
{polling.length} new {polling.length > 1 ? 'entries' : 'entry'} available
{polling.length} new {polling.length > 1 ? 'updates' : 'update'}
</button>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/react/containers/AppContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AppContainer extends Component {
return (
<div style={{ position: 'relative' }}>
{(page === 1 || paginationTypeLoadMore) && canEdit && <Editor isEditing={false} />}
<h2 className="liveblog-feed-title">Live Updates</h2>
<h2 className="liveblog-feed-title">{config.state === 'enable' ? 'Live Updates' : 'Updates'}</h2>
<UpdateButton polling={polling} click={() => mergePolling()} />
{!paginationTypeLoadMore && <PaginationContainer /> }
<Entries loading={loading} entries={entries} />
Expand Down

0 comments on commit bf76283

Please sign in to comment.