mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 02:36:36 +00:00
add name change for planet & fix minor bugs
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
var React = require('react/addons')
|
||||
var ReactRouter = require('react-router')
|
||||
var Catalyst = require('../Mixins/Catalyst')
|
||||
var PlanetStore = require('../Stores/PlanetStore')
|
||||
|
||||
var SnippetForm = require('./SnippetForm')
|
||||
var BlueprintForm = require('./BlueprintForm')
|
||||
@@ -16,19 +15,6 @@ var LaunchModal = React.createClass({
|
||||
currentTab: 'snippet'
|
||||
}
|
||||
},
|
||||
componentDidMount: function () {
|
||||
this.unsubscribe = PlanetStore.listen(this.onListen)
|
||||
},
|
||||
componentWillUnmount: function () {
|
||||
this.unsubscribe()
|
||||
},
|
||||
onListen: function (res) {
|
||||
switch (res.status) {
|
||||
case 'articleCreated':
|
||||
this.props.close()
|
||||
break
|
||||
}
|
||||
},
|
||||
stopPropagation: function (e) {
|
||||
e.stopPropagation()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user