mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 10:16:26 +00:00
add name change for planet & fix minor bugs
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
var React = require('react')
|
||||
var PlanetStore = require('../Stores/PlanetStore')
|
||||
|
||||
var PlanetActions = require('../Actions/PlanetActions')
|
||||
|
||||
var SnippetDeleteModal = React.createClass({
|
||||
@@ -7,20 +7,6 @@ var SnippetDeleteModal = React.createClass({
|
||||
close: React.PropTypes.func,
|
||||
snippet: React.PropTypes.object
|
||||
},
|
||||
componentDidMount: function () {
|
||||
this.unsubscribe = PlanetStore.listen(this.onListen)
|
||||
React.findDOMNode(this.refs.submit).focus()
|
||||
},
|
||||
componentWillUnmount: function () {
|
||||
this.unsubscribe()
|
||||
},
|
||||
onListen: function (res) {
|
||||
switch (res.status) {
|
||||
case 'articleDeleted':
|
||||
this.props.close()
|
||||
break
|
||||
}
|
||||
},
|
||||
stopPropagation: function (e) {
|
||||
e.stopPropagation()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user