mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-19 12:41:43 +00:00
add name change for planet & fix minor bugs
This commit is contained in:
@@ -1,25 +1,12 @@
|
||||
var React = require('react')
|
||||
|
||||
var BlueprintForm = require('./BlueprintForm')
|
||||
var PlanetStore = require('../Stores/PlanetStore')
|
||||
|
||||
var BlueprintEditModal = React.createClass({
|
||||
propTypes: {
|
||||
close: React.PropTypes.func,
|
||||
blueprint: React.PropTypes.object
|
||||
},
|
||||
componentDidMount: function () {
|
||||
this.unsubscribe = PlanetStore.listen(this.onListen)
|
||||
},
|
||||
componentWillUnmount: function () {
|
||||
this.unsubscribe()
|
||||
},
|
||||
onListen: function (res) {
|
||||
switch (res.status) {
|
||||
case 'articleUpdated':
|
||||
this.props.close()
|
||||
break
|
||||
}
|
||||
},
|
||||
stopPropagation: function (e) {
|
||||
e.stopPropagation()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user