remove reference to spee.ch if the api is down

This commit is contained in:
Sean Yesmunt 2018-06-13 12:27:07 -04:00
parent 122e669a59
commit 061af8315a

View file

@ -363,10 +363,16 @@ class PublishForm extends React.PureComponent<Props> {
<section className="card card--section"> <section className="card card--section">
<div className="card__title">{__('Thumbnail')}</div> <div className="card__title">{__('Thumbnail')}</div>
<div className="card__subtitle"> <div className="card__subtitle">
{__( {uploadThumbnailStatus === STATUSES.API_DOWN ? (
'Upload your thumbnail to spee.ch, or enter the url manually. Learn more about spee.ch ' __('Enter a url for your thumbnail.')
) : (
<React.Fragment>
{__(
'Upload your thumbnail to spee.ch, or enter the url manually. Learn more about spee.ch '
)}
<Button button="link" label={__('here')} href="https://spee.ch/about" />.
</React.Fragment>
)} )}
<Button button="link" label={__('here')} href="https://spee.ch/about" />.
</div> </div>
<SelectThumbnail <SelectThumbnail
thumbnailPath={thumbnailPath} thumbnailPath={thumbnailPath}