Show the error dialog when requests to PUT power levels fail
This is why I dislike Q.
This commit is contained in:
parent
6d07a1b7e3
commit
e196cfaf91
1 changed files with 1 additions and 0 deletions
|
@ -376,6 +376,7 @@ module.exports = WithMatrixClient(React.createClass({
|
|||
// get out of sync if we force setState here!
|
||||
console.log("Power change success");
|
||||
}, function(err) {
|
||||
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: "Failure to change power level",
|
||||
description: err.message
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue