mirror of https://github.com/vector-im/riot-web
remove totally dead wood from stale Modal API
parent
e55a375d6f
commit
d0d22136f5
|
@ -126,9 +126,7 @@ module.exports = React.createClass({
|
|||
|
||||
onLogoutClicked: function(ev) {
|
||||
var LogoutPrompt = sdk.getComponent('dialogs.LogoutPrompt');
|
||||
this.logoutModal = Modal.createDialog(
|
||||
LogoutPrompt, {onCancel: this.onLogoutPromptCancel}
|
||||
);
|
||||
this.logoutModal = Modal.createDialog(LogoutPrompt);
|
||||
},
|
||||
|
||||
onPasswordChangeError: function(err) {
|
||||
|
@ -162,10 +160,6 @@ module.exports = React.createClass({
|
|||
});
|
||||
},
|
||||
|
||||
onLogoutPromptCancel: function() {
|
||||
this.logoutModal.closeDialog();
|
||||
},
|
||||
|
||||
onEnableNotificationsChange: function(event) {
|
||||
UserSettingsStore.setEnableNotifications(event.target.checked);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue