mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-08 07:28:26 +00: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:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user