Show an error dialog if poll creation or voting fails (#7201)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
c8765821b5
commit
965539da2d
4 changed files with 56 additions and 7 deletions
|
@ -216,9 +216,17 @@ class PollButton extends React.PureComponent<IPollButtonProps> {
|
|||
description: _t("You do not have permission to start polls in this room."),
|
||||
});
|
||||
} else {
|
||||
Modal.createTrackedDialog('Polls', 'create', PollCreateDialog, {
|
||||
room: this.props.room,
|
||||
}, 'mx_CompoundDialog');
|
||||
Modal.createTrackedDialog(
|
||||
'Polls',
|
||||
'create',
|
||||
PollCreateDialog,
|
||||
{
|
||||
room: this.props.room,
|
||||
},
|
||||
'mx_CompoundDialog',
|
||||
false, // isPriorityModal
|
||||
true, // isStaticModal
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue