mirror of
https://github.com/wassname/talk.git
synced 2026-10-01 12:42:56 +08:00
display a simple error text
This commit is contained in:
1 parent
ff52714f27
commit
c6188913d8
1 file changed
+5
-1
@@ -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