+
+
Blog
+
+
+ Blog Type
+
+
+
+
+
+
+
Blog Address
+
+ this.handleBlogChange(e)}
+ ref='addressInput'
+ value={config.blog.address}
+ type='text'
+ />
+
+
+
+
+ {blogAlertElement}
+
+
+
Auth
+
+
+
+ Authentication Method
+
+
+
+
+
+ { config.blog.authMethod === 'JWT' &&
+
+
Token
+
+ this.handleBlogChange(e)}
+ ref='tokenInput'
+ value={config.blog.token}
+ type='text' />
+
+
+ }
+ { config.blog.authMethod === 'USER' &&
+
+
+
UserName
+
+ this.handleBlogChange(e)}
+ ref='usernameInput'
+ value={config.blog.username}
+ type='text' />
+
+
+
+
Password
+
+ this.handleBlogChange(e)}
+ ref='passwordInput'
+ value={config.blog.password}
+ type='password' />
+
+
+
+ }
+
+ )
+ }
+}
+
+Blog.propTypes = {
+ dispatch: PropTypes.func,
+ haveToSave: PropTypes.func
+}
+
+export default CSSModules(Blog, styles)
diff --git a/browser/main/modals/PreferencesModal/index.js b/browser/main/modals/PreferencesModal/index.js
index 6cd5badc..09ca9a4e 100644
--- a/browser/main/modals/PreferencesModal/index.js
+++ b/browser/main/modals/PreferencesModal/index.js
@@ -6,6 +6,7 @@ import UiTab from './UiTab'
import InfoTab from './InfoTab'
import Crowdfunding from './Crowdfunding'
import StoragesTab from './StoragesTab'
+import Blog from './Blog'
import ModalEscButton from 'browser/components/ModalEscButton'
import CSSModules from 'browser/lib/CSSModules'
import styles from './PreferencesModal.styl'
@@ -19,7 +20,8 @@ class Preferences extends React.Component {
this.state = {
currentTab: 'STORAGES',
UIAlert: '',
- HotkeyAlert: ''
+ HotkeyAlert: '',
+ BlogAlert: ''
}
}
@@ -75,6 +77,14 @@ class Preferences extends React.Component {
return (