Add method to Modal to create dialog with instantiated React elements as well as Classes.
This commit is contained in:
parent
05f7a3b4d1
commit
0791cac572
3 changed files with 28 additions and 9 deletions
|
@ -39,7 +39,7 @@ module.exports = {
|
|||
var self = this;
|
||||
cli.getProfileInfo(cli.credentials.userId).done(function(result) {
|
||||
self.setState({
|
||||
displayname: result.displayname,
|
||||
displayName: result.displayname,
|
||||
busy: false
|
||||
});
|
||||
}, function(error) {
|
||||
|
@ -60,7 +60,10 @@ module.exports = {
|
|||
|
||||
var self = this;
|
||||
MatrixClientPeg.get().setDisplayName(new_displayname).then(function() {
|
||||
self.setState({busy: false});
|
||||
self.setState({
|
||||
busy: false,
|
||||
displayName: new_displayname
|
||||
});
|
||||
}, function(error) {
|
||||
self.setState({
|
||||
busy: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue