-
-
Notifications
You must be signed in to change notification settings - Fork 830
Add confirmation dialog to kick/ban buttons #694
Conversation
Add a specific dialog used for confirming member actions. Also remove onFinished from MemberInfo which did absolutely nothing.
On
onFinished is used... albeit in a very subtle way.
I suppose
|
/* | ||
* A dialog for confirming an operation on another user. | ||
* Takes a user ID and a verb, displays the target user prominently | ||
* such that it should be easy to confirm that tne operation is being |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the
export default React.createClass({ | ||
displayName: 'ConfirmUserActionDialog', | ||
propTypes: { | ||
member: React.PropTypes.object.isRequired, // member object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use PropTypes.shape
to indicate what properties member
should have.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought about it, although it's a standard JS SDK member object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh ok.. I wished there was a thing for this but I don't think there is... maybe change the comment so that it's obvious that member
is a RoomMember
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh.. you did that, in that case LGTM
That I've now broken such that it wouldnt work if it were uncommented
Oh, good spot. I've removed the commented out stuff. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Add a specific dialog used for confirming member actions.
Also remove onFinished from MemberInfo which did absolutely
nothing.
Requires element-hq/element-web#3224
Fixes element-hq/element-web#3218