AppsDrawer: Open add app widget if opening empty drawer
This felt much better than having to also click the add app widget button.pull/21833/head
parent
5f020423bc
commit
edb11d805e
src/components/views/rooms
|
@ -35,6 +35,9 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
componentDidMount: function() {
|
||||
if (this.state.apps && this.state.apps.length < 1) {
|
||||
this.onClickAddWidget();
|
||||
}
|
||||
},
|
||||
|
||||
componentWillUnmount: function() {
|
||||
|
|
Loading…
Reference in New Issue