Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Show the error dialog when requests to PUT power levels fail #614

Merged
merged 2 commits into from
Jan 13, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/views/rooms/MemberInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const please :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Modal.createDialog(ErrorDialog, {
title: "Failure to change power level",
description: err.message
Expand Down