1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +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

@@ -18,22 +18,24 @@ export default class CreateNewFolder extends React.Component {
}
handleConfirmButton (e) {
let { close } = this.props
let name = this.state.name
let input = {
name
}
this.setState({alert: null}, () => {
let { close } = this.props
let name = this.state.name
let input = {
name
}
store.dispatch(createFolder(input))
try {
} catch (e) {
this.setState({alert: {
type: 'error',
message: e.message
}})
return
}
close()
try {
store.dispatch(createFolder(input))
} catch (e) {
this.setState({alert: {
type: 'error',
message: e.message
}})
return
}
close()
})
}
render () {