1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-01-08 22:49:21 +00:00
- add error alert(folder editing)
- debug clear button of search input
This commit is contained in:
Rokt33r
2015-11-05 09:50:07 +09:00
parent cc0f2c7c7f
commit 8abdedc11d
10 changed files with 126 additions and 77 deletions

View File

@@ -27,8 +27,8 @@ class HomePage extends React.Component {
}
handleKeyDown (e) {
if (isModalOpen() && e.keyCode === 27) {
closeModal()
if (isModalOpen()) {
if (e.keyCode === 27) closeModal()
return
}

View File

@@ -61,9 +61,7 @@ export default class ArticleTopBar extends React.Component {
}
handleSearchClearButton (e) {
let { dispatch } = this.props
dispatch(setSearchFilter(''))
this.searchInput.value = ''
this.focusInput()
}

View File

@@ -7,9 +7,9 @@ import HomePage from './HomePage'
// import auth from 'boost/auth'
import store from 'boost/store'
import ReactDOM from 'react-dom'
import { isModalOpen, closeModal } from 'boost/modal'
import { IDLE_MODE, CREATE_MODE, EDIT_MODE } from 'boost/actions'
require('../styles/main/index.styl')
import { openModal } from 'boost/modal'
import Tutorial from 'boost/components/modal/Tutorial'
let routes = (
<Route path='/' component={MainPage}>
@@ -27,4 +27,11 @@ ReactDOM.render((
), el, function () {
let loadingCover = document.getElementById('loadingCover')
loadingCover.parentNode.removeChild(loadingCover)
let status = JSON.parse(localStorage.getItem('status'))
if (status == null) status = {}
if (!status.introWatched) {
openModal(Tutorial)
status.introWatched = true
localStorage.setItem('status', JSON.stringify(status))
}
})