Skip to content

Commit

Permalink
Merge pull request #889 from asmsuechan/cloud-sync-comment
Browse files Browse the repository at this point in the history
Add link for cloud integration
  • Loading branch information
kazup01 authored Sep 23, 2017
2 parents bd266dc + 9b33061 commit 5157362
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions browser/main/modals/PreferencesModal/StoragesTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import dataApi from 'browser/main/lib/dataApi'
import StorageItem from './StorageItem'

const electron = require('electron')
const remote = electron.remote
const { shell, remote } = electron

function browseFolder () {
let dialog = remote.dialog
Expand Down Expand Up @@ -50,6 +50,11 @@ class StoragesTab extends React.Component {
})
}

handleLinkClick (e) {
shell.openExternal(e.currentTarget.href)
e.preventDefault()
}

renderList () {
let { data, boundingBox } = this.props

Expand Down Expand Up @@ -161,7 +166,10 @@ class StoragesTab extends React.Component {
<option value='FILESYSTEM'>File System</option>
</select>
<div styleName='addStorage-body-section-type-description'>
3rd party cloud integration(such as Google Drive and Dropbox) will be available soon.
3rd party cloud integration:
<a href='https://github.com/BoostIO/Boostnote/wiki/Cloud-Syncing'
onClick={(e) => this.handleLinkClick(e)}
>Cloud-Syncing</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 5157362

Please sign in to comment.