You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
remove totally dead wood from stale Modal API
This commit is contained in:
@@ -126,9 +126,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
onLogoutClicked: function(ev) {
|
onLogoutClicked: function(ev) {
|
||||||
var LogoutPrompt = sdk.getComponent('dialogs.LogoutPrompt');
|
var LogoutPrompt = sdk.getComponent('dialogs.LogoutPrompt');
|
||||||
this.logoutModal = Modal.createDialog(
|
this.logoutModal = Modal.createDialog(LogoutPrompt);
|
||||||
LogoutPrompt, {onCancel: this.onLogoutPromptCancel}
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onPasswordChangeError: function(err) {
|
onPasswordChangeError: function(err) {
|
||||||
@@ -162,10 +160,6 @@ module.exports = React.createClass({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onLogoutPromptCancel: function() {
|
|
||||||
this.logoutModal.closeDialog();
|
|
||||||
},
|
|
||||||
|
|
||||||
onEnableNotificationsChange: function(event) {
|
onEnableNotificationsChange: function(event) {
|
||||||
UserSettingsStore.setEnableNotifications(event.target.checked);
|
UserSettingsStore.setEnableNotifications(event.target.checked);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user