mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 03:28:41 +08:00
display a simple error text
This commit is contained in:
@@ -75,10 +75,12 @@ class Configure extends React.Component {
|
||||
}
|
||||
|
||||
render () {
|
||||
const pageTitle = this.state.activeSection === 'comments'
|
||||
let pageTitle = this.state.activeSection === 'comments'
|
||||
? 'Comment Settings'
|
||||
: 'Embed Comment Stream'
|
||||
|
||||
if (this.props.fetchingSettings) pageTitle += ' - Loading...'
|
||||
|
||||
return (
|
||||
<Page>
|
||||
<div className={styles.container}>
|
||||
@@ -101,6 +103,8 @@ class Configure extends React.Component {
|
||||
</div>
|
||||
<div className={styles.mainContent}>
|
||||
<h1>{pageTitle}</h1>
|
||||
{ this.props.saveFetchingError }
|
||||
{ this.props.fetchSettingsError }
|
||||
{
|
||||
this.state.activeSection === 'comments'
|
||||
? this.getCommentSettings()
|
||||
|
||||
Reference in New Issue
Block a user