1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-16 06:42:26 +03:00

AppsDrawer: Open add app widget if opening empty drawer

This felt much better than having to also click the add app widget
button.
This commit is contained in:
Robert Swain
2017-06-14 15:05:29 +02:00
parent 5f020423bc
commit edb11d805e

View File

@@ -35,6 +35,9 @@ module.exports = React.createClass({
}, },
componentDidMount: function() { componentDidMount: function() {
if (this.state.apps && this.state.apps.length < 1) {
this.onClickAddWidget();
}
}, },
componentWillUnmount: function() { componentWillUnmount: function() {